Skip to content

Update workflows

Update workflows #145

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 }}
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: '6.0.x'
- name: Cache packages
uses: actions/cache@v3
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: |-
dotnet tool restore
dotnet paket restore
dotnet fake build -e CI=true