simplify pipelines
CI / Test + coverage (push) Successful in 14s

This commit is contained in:
2026-09-19 06:03:35 -09:00
parent 30c59a3c46
commit 99d6a2f5c6
+14 -22
View File
@@ -11,41 +11,33 @@ on:
# rather than bind mounts so they work from inside a job container.
jobs:
unit:
name: Unit tests
test:
name: Test + coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Fail fast with a clear message if the runner has no usable Docker.
- name: Check Docker
run: |
docker version
docker buildx version
- run: script/docker-unit-test
integration:
name: Integration tests + coverage
runs-on: ubuntu-latest
needs: unit
steps:
- uses: actions/checkout@v4
- name: Check Docker
run: |
docker version
docker compose version
docker buildx version
# Unit + integration under Cloverage, then the merged report
# (the dockerized equivalent of script/coverage).
- run: script/docker-unit-coverage
- run: script/integration-coverage
- run: script/docker-coverage-report
# Each suite runs once, under Cloverage; the merged report is the dockerized
# equivalent of script/coverage.
- name: Unit tests (coverage)
run: script/docker-unit-coverage
- name: Integration tests (coverage)
run: script/integration-coverage
- name: Merge coverage report
run: script/docker-coverage-report
# Gitea Actions only supports upload-artifact v3 (v4+ needs GitHub's artifact backend).
- uses: actions/upload-artifact@v3
- name: Upload coverage report
uses: actions/upload-artifact@v3
if: always()
with:
name: coverage