[O2B-1588] Implement summary views for overview pages #14361
This file contains hidden or 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 | |
| permissions: | |
| contents: read | |
| actions: write | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| benchmark: | |
| name: envs benchmarks | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Docker | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Create Coverage Directory | |
| run: mkdir -p ${{ github.workspace }}/coverage | |
| - name: Set COMPOSE_PROJECT_NAME | |
| run: echo "COMPOSE_PROJECT_NAME=benchmark_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: envs | |
| - 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: envs | |
| - name: Run Benchmarks | |
| run: | | |
| docker compose \ | |
| -f docker-compose.test-parallel-base.yml \ | |
| -f docker-compose.test-parallel-ci.yml \ | |
| run test_app npm run benchmark | |
| env: | |
| TEST_TYPE: envs | |
| - name: Clean Up | |
| if: always() | |
| run: | | |
| docker compose \ | |
| -f docker-compose.test-parallel-base.yml \ | |
| -f docker-compose.test-parallel-ci.yml \ | |
| down | |
| env: | |
| TEST_TYPE: envs | |
| 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@v6 | |
| - name: Set up Docker | |
| uses: docker/setup-buildx-action@v4 | |
| - 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@v6 | |
| with: | |
| files: ./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@v6 | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22.x' | |
| - name: Installing dependencies | |
| run: npm ci | |
| - name: Running linter | |
| run: npm run lint |