Skip to content

fix(ci/format): properly init git #52

fix(ci/format): properly init git

fix(ci/format): properly init git #52

Workflow file for this run

name: 🧪 Run Tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
config:
- Release
- Debug
os:
- macos-latest
- ubuntu-latest
- windows-latest
vtk-system: [true, false]
exclude:
- os: macos-latest
vtk-system: true
- os: windows-latest
vtk-system: true
runs-on: ${{ matrix.os }}
container: ${{ matrix.os == 'ubuntu-latest' && 'fedora:38' || null }}
name: '🧪 Test on ${{ matrix.os }} ["${{ matrix.config }}", VTK: "${{ matrix.vtk-system }}"]'
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🖥️ Setup Environment
uses: ./.github/actions/setup
with:
container: ${{ matrix.os }}
install-vtk: ${{ matrix.vtk-system }}
- name: 🦥 Cache Dependencies
uses: actions/cache@v4
with:
key: test-${{ matrix.os }}-${{ matrix.config }}-${{ matrix.vtk-system }}
path: build
- name: 🏗️ Compile
run: cmake -DVIENNALS_BUILD_TESTS=ON -B build && cmake --build build --config ${{ matrix.config }}
- name: 🧪 Test
run: ctest -E "Benchmark|Performance" -C ${{ matrix.config }} --test-dir build