WIP: .gitea/workflows: generate coverage
All checks were successful
Build and test / evals (push) Successful in 13m17s

This commit is contained in:
2026-03-02 14:34:08 +09:00
parent b070a1fd31
commit 16d72e94ba
2 changed files with 23 additions and 1 deletions

View File

@@ -46,5 +46,26 @@ jobs:
- name: Print database statistics
run: nix develop .# --command sqlite3_analyzer result/jadb.sqlite
# TODO: Defer failure of tests until after the coverage report is generated and uploaded.
- name: Run tests
run: nix develop .# --command dart run test --concurrency=1
run: nix develop .# --command dart run test --concurrency=1 --coverage-path=coverage/lcov.info
- name: Generate coverage report
run: |
GENHTML_ARGS=(
--current-date="$(date)"
--dark-mode
--output-directory coverage/report
)
nix develop .# --command genhtml "${GENHTML_ARGS[@]}" coverage/lcov.info
- name: Upload coverage report
uses: https://git.pvv.ntnu.no/Projects/rsync-action@v2
with:
source: ./coverage
target: jadb/${{ gitea.ref_name }}/
username: oysteikt
ssh-key: ${{ secrets.OYSTEIKT_GITEA_WEBDOCS_SSH_KEY }}
host: microbel.pvv.ntnu.no
known-hosts: "microbel.pvv.ntnu.no ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEq0yasKP0mH6PI6ypmuzPzMnbHELo9k+YB5yW534aKudKZS65YsHJKQ9vapOtmegrn5MQbCCgrshf+/XwZcjbM="

1
.gitignore vendored
View File

@@ -8,6 +8,7 @@
# Conventional directory for build output.
/doc/
/build/
/coverage/
main.db
# Nix