Update SDK tests workflow

This commit is contained in:
Prathamesh Musale 2024-03-12 12:36:38 +05:30
parent 4e5f9bf9e1
commit 89b09d7049
3 changed files with 16 additions and 16 deletions

View File

@ -16,11 +16,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout laconicd
- name: Checkout laconic2d
uses: actions/checkout@v3
with:
path: "./laconicd/"
repository: cerc-io/laconicd
path: "./laconic2d/"
repository: cerc-io/laconic2d
fetch-depth: 0
ref: main
- name: Environment
@ -31,33 +31,33 @@ jobs:
dockerd -H $DOCKER_HOST --userland-proxy=false &
sleep 5
- name: Build laconicd container
working-directory: laconicd/tests/sdk_tests
run: ./build-laconicd-container.sh
- name: Build laconic-sdk container
- name: Build laconic2d container
working-directory: laconic2d/tests/sdk_tests
run: ./build-laconic2d-container.sh
- name: Build sdk container
run: ./scripts/build-sdk-test-container.sh
- name: Start containers
working-directory: laconicd/tests/sdk_tests
working-directory: laconic2d/tests/sdk_tests
run: docker compose up -d
- name: Run tests
working-directory: laconicd/tests/sdk_tests
working-directory: laconic2d/tests/sdk_tests
run: ./run-tests.sh
- name: Start containers (auctions enabled)
working-directory: laconicd/tests/sdk_tests
working-directory: laconic2d/tests/sdk_tests
env:
TEST_AUCTION_ENABLED: true
run: docker compose up -d
- name: Run auction tests
working-directory: laconicd/tests/sdk_tests
working-directory: laconic2d/tests/sdk_tests
run: ./run-tests.sh test:auctions
- name: Start containers (expiry enabled)
working-directory: laconicd/tests/sdk_tests
working-directory: laconic2d/tests/sdk_tests
env:
TEST_REGISTRY_EXPIRY: true
run: docker compose up -d
- name: Run nameservice expiry tests
working-directory: laconicd/tests/sdk_tests
working-directory: laconic2d/tests/sdk_tests
run: ./run-tests.sh test:nameservice-expiry

View File

@ -29,10 +29,10 @@ COPY entrypoint.sh .
ENTRYPOINT ["/entrypoint.sh"]
CMD node --version
WORKDIR /app/laconic-sdk
WORKDIR /app/registry-sdk
COPY package*.json .
RUN yarn install
COPY . .
WORKDIR /app/laconic-sdk
WORKDIR /app/registry-sdk

View File

@ -1,2 +1,2 @@
#!/usr/bin/env bash
docker build -t cerc/laconic-sdk-tester:local -f Dockerfile .
docker build -t cerc/registry-sdk-tester:local -f Dockerfile .