diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 24f1c30..6c85e52 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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