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
|
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
|
|
|
|
|
2024-09-20 07:42:59 +00:00
|
|
|
- name: Start containers (authority 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
|
2024-09-20 07:42:59 +00:00
|
|
|
- name: Run authority auction tests
|
2024-04-01 14:23:34 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
2024-09-20 07:42:59 +00:00
|
|
|
run: ./run-tests.sh test:authority-auctions
|
2024-01-22 08:30:35 +00:00
|
|
|
|
|
|
|
- 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
|