[gh-actions] Fix workflow syntax #170
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
pull_request: | |
branches: | |
- next | |
- main | |
push: | |
branches: | |
- next | |
tags-ignore: | |
- '**' | |
jobs: | |
unit_tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- name: Pre-test install | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Cache packages | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
${{ github.workspace }}/.paket | |
key: ${{ runner.os }}-nuget-${{ hashFiles('src/Fornax.Seo/Fornax.Seo.fsproj') }} | |
restore-keys: |- | |
${{ runner.os }}-nuget- | |
${{ runner.os }}- | |
- name: Run tests | |
run: |- | |
./build -e CI=true |