Compare commits

...
Author SHA1 Message Date
Michael Shaw 852160de38 WIP for CICD from sdk side 2023-01-26 10:37:29 -05:00
Ian Norden 80348594f8 Merge pull request #20 from cerc-io/zramsay-patch-1
remove duplicate line in tests
2023-01-12 18:59:34 -06:00
Zach 55675c7b55 rm duplicate line (typo?) 2023-01-11 18:27:00 -05:00
Zach 10d58ca028 Merge pull request #19 from cerc-io/ian/bump_version
Update package to 0.1.5
2023-01-11 17:02:56 -05:00
i-norden 95bdacb4a1 version 0.1.5 2023-01-11 15:48:24 -06:00
5 changed files with 40 additions and 4 deletions
+35
View File
@@ -0,0 +1,35 @@
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
+2
View File
@@ -1,3 +1,5 @@
node_modules
dist
.env
.env~
.idea
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@cerc-io/laconic-sdk",
"version": "0.1.4",
"version": "0.1.5",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "git@github.com:cerc-io/laconic-sdk.git",
+1 -2
View File
@@ -7,7 +7,7 @@ import { ensureUpdatedConfig, getConfig } from './testing/helper';
const WATCHER_YML_PATH = path.join(__dirname, './testing/data/watcher.yml');
jest.setTimeout(120 * 1000);
jest.setTimeout(240 * 1000);
const { chainId, restEndpoint, gqlEndpoint, privateKey, fee } = getConfig();
@@ -244,7 +244,6 @@ const namingTests = () => {
const records = await registry.lookupNames([crn], true);
expect(records).toBeDefined();
expect(records).toBeDefined();
expect(records).toHaveLength(1);
const [{ latest }] = records;
+1 -1
View File
@@ -4,4 +4,4 @@ record:
repo_registration_record_cid: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D
build_artifact_cid: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9
tls_cert_cid: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
version: 1.0.17
version: 1.0.24