Release 1.3.0 (#1798) #12094
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bookkeeping | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
parallel_tests: | |
name: ${{ matrix.test_type }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
test_type: [unit, | |
api, | |
lhc-periods, | |
lhc-fills, | |
logs, | |
envs, | |
runs, | |
tags, | |
flps, | |
home, | |
about, | |
eos-report, | |
data-passes, | |
simulation-passes, | |
qc-flag-types, | |
qc-flags] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v3 | |
- name: Create Coverage Directory | |
run: mkdir -p ${{ github.workspace }}/coverage | |
- name: Set COMPOSE_PROJECT_NAME | |
run: echo "COMPOSE_PROJECT_NAME=${{ matrix.test_type }}_app" >> $GITHUB_ENV | |
- name: Build and Start Test Database | |
run: | | |
docker compose \ | |
-f docker-compose.test-parallel-base.yml \ | |
-f docker-compose.test-parallel-ci.yml \ | |
up --detach test_db | |
env: | |
TEST_TYPE: ${{ matrix.test_type }} | |
- name: Build Test Container | |
run: | | |
docker compose \ | |
-f docker-compose.test-parallel-base.yml \ | |
-f docker-compose.test-parallel-ci.yml \ | |
build test_app | |
env: | |
TEST_TYPE: ${{ matrix.test_type }} | |
- name: Run Tests | |
run: | | |
docker compose \ | |
-f docker-compose.test-parallel-base.yml \ | |
-f docker-compose.test-parallel-ci.yml \ | |
run test_app | |
env: | |
TEST_TYPE: ${{ matrix.test_type }} | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage/lcov.info | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
TEST_TYPE: ${{ matrix.test_type }} | |
- name: Clean Up | |
run: | | |
docker compose \ | |
-f docker-compose.test-parallel-base.yml \ | |
-f docker-compose.test-parallel-ci.yml \ | |
down | |
env: | |
TEST_TYPE: ${{ matrix.test_type }} | |
linter: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Installing dependencies | |
run: npm ci | |
- name: Running linter | |
run: npm run lint |