2023-02-15 20:57:23 +00:00
|
|
|
name: Tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- release/**
|
2023-03-07 20:43:58 +00:00
|
|
|
- zach/**
|
2023-02-15 20:57:23 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
sdk_tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Checkout laconicd
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
path: "./laconicd/"
|
|
|
|
repository: cerc-io/laconicd
|
|
|
|
fetch-depth: 0
|
|
|
|
ref: main
|
2023-03-07 20:52:43 +00:00
|
|
|
|
|
|
|
- name: Run registry-cli demo commands in registry-cli container
|
|
|
|
run : ./cli-commands-test.sh
|
|
|
|
|
2023-02-15 20:57:23 +00:00
|
|
|
- name: Environment
|
|
|
|
run: ls -tlh && env
|
|
|
|
- name: build registry-cli container
|
2023-03-07 20:34:28 +00:00
|
|
|
run: docker build -t cerc/laconic-registry-cli:local-test --build-arg CERC_NPM_URL=https://git.vdb.to/api/packages/cerc-io/npm/ .
|
2023-02-15 20:57:23 +00:00
|
|
|
- name: build containers scripts
|
|
|
|
working-directory: laconicd/tests/sdk_tests
|
|
|
|
run: ./build-laconicd-container.sh
|
|
|
|
- name: start laconicd container
|
|
|
|
working-directory: laconicd/tests/sdk_tests
|
|
|
|
run: docker compose up laconicd -d
|
|
|
|
|
|
|
|
- name: Run registry-cli demo commands in registry-cli container
|
2023-03-07 20:34:28 +00:00
|
|
|
run : ./cli-commands-test.sh
|
2023-02-15 20:57:23 +00:00
|
|
|
- name: stop containers
|
|
|
|
working-directory: laconicd/tests/sdk_tests
|
|
|
|
run: docker compose down
|
|
|
|
|