Some checks failed
Build Docs / build-docs (push) Failing after 3m1s
Build and Test Code / test (push) Successful in 3m15s
Build and Test Code / static_analysis (push) Successful in 3m17s
Build and Test Code / coverage (push) Successful in 3m21s
Build and Test Code / sanitize (push) Successful in 3m24s
69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
name: Build and Test Code
|
|
run-name: ${{ gitea.ref }} Build
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: garm-k8s
|
|
container: gitea.shrukanslab.xyz/shrukan/cpp-template/dev-environment:latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Unit test
|
|
run: just test
|
|
|
|
- name: Archive test report
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: test_logs
|
|
path: build/meson-logs
|
|
retention-days: 5
|
|
|
|
coverage:
|
|
runs-on: garm-k8s
|
|
container: gitea.shrukanslab.xyz/shrukan/cpp-template/dev-environment:latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Coverage
|
|
run: just coverage
|
|
|
|
- name: Compress coverage report
|
|
run: tar -czf build/coverage.tar.gz build/meson-logs/coveragereport
|
|
|
|
- name: Archive coverage report
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
|
with:
|
|
name: coverage_report
|
|
path: build/meson-logs/coveragereport
|
|
retention-days: 5
|
|
|
|
static_analysis:
|
|
runs-on: garm-k8s
|
|
container: gitea.shrukanslab.xyz/shrukan/cpp-template/dev-environment:latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Configure
|
|
run: just configure
|
|
|
|
- name: Static analysis
|
|
run: just check
|
|
|
|
sanitize:
|
|
runs-on: garm-k8s
|
|
container: gitea.shrukanslab.xyz/shrukan/cpp-template/dev-environment:latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Configure
|
|
run: just configure
|
|
|
|
- name: Sanitize
|
|
run: just sanitize
|