2023-03-29 23:12:24 +00:00
|
|
|
name: Tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- release/**
|
|
|
|
|
|
|
|
env:
|
2023-04-20 19:36:32 +00:00
|
|
|
DOCKER_HOST: unix:///var/run/dind.sock
|
2023-03-29 23:12:24 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
sdk_tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2024-04-01 14:23:34 +00:00
|
|
|
- name: Checkout laconicd
|
2023-03-29 23:12:24 +00:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
2024-04-01 14:23:34 +00:00
|
|
|
path: "./laconicd/"
|
2024-07-23 04:52:49 +00:00
|
|
|
repository: cerc-io/laconicd
|
2024-08-27 13:05:58 +00:00
|
|
|
github-server-url: 'https://git.vdb.to'
|
2023-03-29 23:12:24 +00:00
|
|
|
fetch-depth: 0
|
|
|
|
ref: main
|
|
|
|
- name: Environment
|
|
|
|
run: ls -tlh && env
|
2024-01-22 08:30:35 +00:00
|
|
|
|
2023-03-29 23:12:24 +00:00
|
|
|
- name: Start dockerd
|
|
|
|
run: |
|
2023-04-20 19:32:44 +00:00
|
|
|
dockerd -H $DOCKER_HOST --userland-proxy=false &
|
2023-03-29 23:12:24 +00:00
|
|
|
sleep 5
|
2024-01-22 08:30:35 +00:00
|
|
|
|
2024-04-01 14:23:34 +00:00
|
|
|
- name: Build laconicd container
|
|
|
|
working-directory: laconicd/tests/sdk_tests
|
|
|
|
run: ./build-laconicd-container.sh
|
2024-03-13 05:23:13 +00:00
|
|
|
- name: Build sdk container
|
2024-01-22 08:30:35 +00:00
|
|
|
run: ./scripts/build-sdk-test-container.sh
|
|
|
|
|
|
|
|
- name: Start containers
|
2024-04-01 14:23:34 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
2023-03-29 23:12:24 +00:00
|
|
|
run: docker compose up -d
|
2024-01-22 08:30:35 +00:00
|
|
|
- name: Run tests
|
2024-04-01 14:23:34 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
2024-01-22 08:30:35 +00:00
|
|
|
run: ./run-tests.sh
|
|
|
|
|
|
|
|
- name: Start containers (auctions enabled)
|
2024-04-01 14:23:34 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
2024-01-22 08:30:35 +00:00
|
|
|
env:
|
|
|
|
TEST_AUCTION_ENABLED: true
|
|
|
|
run: docker compose up -d
|
|
|
|
- name: Run auction tests
|
2024-04-01 14:23:34 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
2024-01-22 08:30:35 +00:00
|
|
|
run: ./run-tests.sh test:auctions
|
|
|
|
|
|
|
|
- name: Start containers (expiry enabled)
|
2024-04-01 14:23:34 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
2024-01-22 08:30:35 +00:00
|
|
|
env:
|
|
|
|
TEST_REGISTRY_EXPIRY: true
|
|
|
|
run: docker compose up -d
|
|
|
|
- name: Run nameservice expiry tests
|
2024-04-01 14:23:34 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
2024-01-22 08:30:35 +00:00
|
|
|
run: ./run-tests.sh test:nameservice-expiry
|
2024-07-16 08:33:41 +00:00
|
|
|
|
|
|
|
- name: Start containers (onboarding enabled)
|
|
|
|
working-directory: laconicd/tests/sdk_tests
|
|
|
|
env:
|
|
|
|
ONBOARDING_ENABLED: true
|
|
|
|
run: docker compose up -d
|
|
|
|
- name: Run participants onboarding tests
|
|
|
|
working-directory: laconicd/tests/sdk_tests
|
|
|
|
run: ./run-tests.sh test:onboarding
|