+14
-22
@@ -11,41 +11,33 @@ on:
|
|||||||
# rather than bind mounts so they work from inside a job container.
|
# rather than bind mounts so they work from inside a job container.
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit:
|
test:
|
||||||
name: Unit tests
|
name: Test + coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# Fail fast with a clear message if the runner has no usable Docker.
|
# 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
|
- name: Check Docker
|
||||||
run: |
|
run: |
|
||||||
docker version
|
docker version
|
||||||
docker compose version
|
docker compose version
|
||||||
docker buildx version
|
docker buildx version
|
||||||
|
|
||||||
# Unit + integration under Cloverage, then the merged report
|
# Each suite runs once, under Cloverage; the merged report is the dockerized
|
||||||
# (the dockerized equivalent of script/coverage).
|
# equivalent of script/coverage.
|
||||||
- run: script/docker-unit-coverage
|
- name: Unit tests (coverage)
|
||||||
- run: script/integration-coverage
|
run: script/docker-unit-coverage
|
||||||
- run: script/docker-coverage-report
|
|
||||||
|
- 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).
|
# 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()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: coverage
|
name: coverage
|
||||||
|
|||||||
Reference in New Issue
Block a user