From 99d6a2f5c68d898bd1070d219c2b72ddde533096 Mon Sep 17 00:00:00 2001 From: ajet Date: Sat, 19 Sep 2026 06:03:35 -0900 Subject: [PATCH] simplify pipelines --- .gitea/workflows/ci.yml | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) 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