Skip to content

Merge pull request #185 from Zechiax/dependabot/nuget/test/Modrinth.N… #691

Merge pull request #185 from Zechiax/dependabot/nuget/test/Modrinth.N…

Merge pull request #185 from Zechiax/dependabot/nuget/test/Modrinth.N… #691

Workflow file for this run

name: .NET (CI)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
# Runs every Sunday at 4 AM UTC
- cron: "0 4 * * 0"
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '8.0.x' ]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test on Pull Requests (Unauthenticated only)
if: github.event_name == 'pull_request'
run: dotnet test --no-build --verbosity normal --filter "Category!=Authenticated"
- name: Test on Main Branch & Scheduled Runs (All tests)
if: github.event_name != 'pull_request'
env:
MODRINTH_API_KEY: ${{ secrets.MODRINTH_TOKEN }}
run: dotnet test --no-build --verbosity normal