Skip to content

Update dotnet monorepo #43

Update dotnet monorepo

Update dotnet monorepo #43

Workflow file for this run

# This file is auto-generated by Generaptor.
name: Main
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: 0 0 * * 6
workflow_dispatch:
jobs:
main:
name: main.${{ matrix.config.name }}
strategy:
matrix:
config:
- image: macos-14
name: macos
- image: ubuntu-24.04
name: linux
- image: windows-2022
name: windows
fail-fast: false
runs-on: ${{ matrix.config.image }}
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Checkout
uses: actions/checkout@v6
- name: NuGet cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.fsproj') }}
path: ${{ env.NUGET_PACKAGES }}
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Build
run: dotnet build
- name: Test
run: dotnet test --filter Category!=ExcludeCI
encoding:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Verify encoding
shell: pwsh
run: Scripts/Test-Encoding.ps1
verify-code-format:
runs-on: ubuntu-24.04
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
- name: NuGet cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.fsproj') }}
path: ${{ env.NUGET_PACKAGES }}
- name: Install Fantomas
run: dotnet tool install -g fantomas
- name: Verify code format
run: fantomas --check .
verify-workflows:
runs-on: ubuntu-24.04
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
- name: NuGet cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.fsproj') }}
path: ${{ env.NUGET_PACKAGES }}
- name: Verify generated CI definition
run: dotnet fsi ./Scripts/github-actions.fsx verify