laconic-registry-cli/.gitea/workflows/test.yml
Nabarun a33445aa4d Use registry-sdk in CLI (#56)
Part of https://www.notion.so/Create-laconic-registry-SDK-d3a636d4aba44f7cbba3bd99b7146811

- Use user key as transaction private key in record publish cmd

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Reviewed-on: cerc-io/laconic-registry-cli#56
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2024-03-18 13:58:52 +00:00

59 lines
1.5 KiB
YAML

name: Tests
on:
pull_request:
branches:
- '*'
push:
branches:
- main
- release/**
env:
DOCKER_HOST: unix:///var/run/dind.sock
jobs:
cli_tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Download yarn
run: |
curl -fsSL -o /usr/local/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js
chmod +x /usr/local/bin/yarn
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Set registry
run: npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
- name: Install dependencies and build
run: yarn && yarn build
- name: Install registry-cli
run: yarn global add file:$PWD
- name: Checkout laconic2d
uses: actions/checkout@v3
with:
path: "./laconic2d/"
repository: cerc-io/laconic2d
fetch-depth: 0
ref: main
- name: Build laconic2d container
working-directory: ./laconic2d/tests/sdk_tests
run: ./build-laconic2d-container.sh
- name: Start laconic2d container
env:
TEST_AUCTION_ENABLED: true
run: docker compose up laconic2d -d
- name: Run registry-cli tests
run: ./test/run-tests.sh
- name: Stop containers
run: docker compose down