44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Run tests
|
|
run-name: Running Tests
|
|
on: [push]
|
|
|
|
jobs:
|
|
Run tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: git.neosisyphus.com/evol3d/evol-testbed:latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Configure
|
|
run: meson setup build
|
|
# run: meson setup -Db_coverage=true build
|
|
|
|
- name: Run Tests
|
|
run: meson test -C build
|
|
|
|
- name: Run Memory Tests
|
|
if: always()
|
|
run: meson test -C build --wrapper=valgrind
|
|
|
|
# - name: Generate coverage report
|
|
# if: always()
|
|
# run: ninja coverage-html -C build
|
|
|
|
# - name: Upload Meson Logs
|
|
# if: always()
|
|
# uses: christopherHX/gitea-upload-artifact@v4
|
|
# with:
|
|
# name: meson-logs
|
|
# path: build/meson-logs/
|
|
- name: Upload Meson Logs
|
|
if: always()
|
|
# Local vendored actions/upload-artifact@v7.0.1 with isGhes() patched
|
|
# to return false for Gitea Actions.
|
|
uses: ./.gitea/actions/upload-artifact-v7-gitea
|
|
with:
|
|
name: meson-log.txt
|
|
path: build/meson-logs/meson-log.txt
|
|
archive: false
|