forked from cerc-io/laconic-sdk
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6a37ac419 |
@@ -1,35 +0,0 @@
|
|||||||
name: Docker Build
|
|
||||||
|
|
||||||
on: [pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [16.x]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
|
||||||
- run: yarn
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
- name: Docker Login
|
|
||||||
run: echo ${{ secrets.GITEA_TOKEN }} | docker login https://git.vdb.to -u cerccicd --password-stdin
|
|
||||||
- name: Docker Pull laconicd latest
|
|
||||||
run: docker pull git.vdb.to/cerc-io/laconicd/laconicd:latest
|
|
||||||
- name: Start laconicd container
|
|
||||||
- run: docker run git.vdb.to/cerc-io/laconicd/laconicd:latest
|
|
||||||
- name: Run tests
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
|
||||||
run: |
|
|
||||||
yarn build
|
|
||||||
yarn test
|
|
||||||
- name: Stop laconicd container
|
|
||||||
- run: docker stop git.vdb.to/cerc-io/laconicd/laconicd:latest
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
.env
|
.env
|
||||||
.env~
|
|
||||||
.idea
|
|
||||||
@@ -57,7 +57,7 @@ Follow these steps to run the tests:
|
|||||||
- In laconicd repo run:
|
- In laconicd repo run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
TEST_NAMESERVICE_EXPIRY=true ./init.sh
|
TEST_REGISTRY_EXPIRY=true ./init.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
- Export the private key and change it in `.env` file again using:
|
- Export the private key and change it in `.env` file again using:
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import { ensureUpdatedConfig, getConfig } from './testing/helper';
|
|||||||
|
|
||||||
const WATCHER_YML_PATH = path.join(__dirname, './testing/data/watcher.yml');
|
const WATCHER_YML_PATH = path.join(__dirname, './testing/data/watcher.yml');
|
||||||
|
|
||||||
jest.setTimeout(240 * 1000);
|
jest.setTimeout(120 * 1000);
|
||||||
|
|
||||||
const { chainId, restEndpoint, gqlEndpoint, privateKey, fee } = getConfig();
|
const { chainId, restEndpoint, gqlEndpoint, privateKey, fee } = getConfig();
|
||||||
|
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ record:
|
|||||||
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
|
||||||
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
|
||||||
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
|
||||||
version: 1.0.24
|
version: 1.0.17
|
||||||
|
|||||||
Reference in New Issue
Block a user