diff --git a/.github/settings.yml b/.github/settings.yml index df66fd0..6375803 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -68,7 +68,7 @@ branches: required_pull_request_reviews: null required_status_checks: strict: false - contexts: ['Build & Test'] + contexts: ['Build & Test (Windows)', 'Build, Test & Pack (Linux)'] enforce_admins: false required_linear_history: false restrictions: null diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c331d03..3621017 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,18 @@ on: workflow_dispatch: jobs: - build: - name: Build & Test + build-windows: + name: Build & Test (Windows) + runs-on: windows-2022 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run tests + run: dotnet test -c Release -p:CollectCoverage=false + + build-linux: + name: Build, Test & Pack (Linux) runs-on: ubuntu-22.04 steps: - name: Checkout @@ -73,7 +83,7 @@ jobs: github: name: Deploy to GitHub - needs: [build] + needs: [build-windows, build-linux] if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-22.04 steps: @@ -86,7 +96,7 @@ jobs: nuget: name: Deploy to NuGet - needs: [build] + needs: [build-windows, build-linux] if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-22.04 steps: