Skip to content

.NET (CI)

.NET (CI) #478

Workflow file for this run

name: .NET (CI)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "0 4 * * 0" # Runs every Sunday at midnight UTC
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '6.0.x', '8.0.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: dotnet test --no-build --verbosity normal