Skip to content

[gh-actions] Fix workflow syntax #170

[gh-actions] Fix workflow syntax

[gh-actions] Fix workflow syntax #170

Workflow file for this run

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