2023-02-10 19:44:23 +00:00
|
|
|
name: Tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- release/**
|
|
|
|
|
|
|
|
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
|
|
|
|
- name: Environment
|
|
|
|
run: ls -tlh && env
|
2024-01-22 08:30:35 +00:00
|
|
|
|
|
|
|
- name: Build laconicd container
|
2023-02-10 19:44:23 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
|
|
|
run: ./build-laconicd-container.sh
|
2024-03-13 10:29:46 +00:00
|
|
|
- name: Build registry-sdk container
|
2024-01-22 08:30:35 +00:00
|
|
|
run: ./scripts/build-sdk-test-container.sh
|
|
|
|
|
|
|
|
- name: Start containers
|
2023-02-10 19:44:23 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
|
|
|
run: docker compose up -d
|
2024-01-22 08:30:35 +00:00
|
|
|
- name: Run tests
|
2023-02-10 19:44:23 +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)
|
2023-02-10 19:44:23 +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
|
2023-02-10 19:44:23 +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)
|
2023-02-10 19:44:23 +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
|
2023-02-10 19:44:23 +00:00
|
|
|
working-directory: laconicd/tests/sdk_tests
|
2024-01-22 08:30:35 +00:00
|
|
|
run: ./run-tests.sh test:nameservice-expiry
|