Skip to content

⚡ Improve CI performance with NuGet caching and skip docs on Windows #557

⚡ Improve CI performance with NuGet caching and skip docs on Windows

⚡ Improve CI performance with NuGet caching and skip docs on Windows #557

Workflow file for this run

name: Build and Test PR
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
id-token: write
security-events: write
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('Directory.Packages.props', 'global.json', '.config/dotnet-tools.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
- name: Run CI
run: dotnet fsi build.fsx
# - name: Analyze Solution
# if: matrix.os == 'ubuntu-latest'
# run: dotnet msbuild /t:AnalyzeSolution
# continue-on-error: true
# - name: Upload SARIF file
# uses: github/codeql-action/upload-sarif@v4
# if: matrix.os == 'ubuntu-latest'
# with:
# sarif_file: ./analysis.sarif
ci:
runs-on: ubuntu-latest
needs: build
steps:
- run: echo "All builds passed"