ci(gh-actions): bump actions/checkout from 4.2.0 to 4.2.1 #421
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_NOLOGO: true | |
NUGET_XMLDOC_MODE: skip | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
jobs: | |
lint: | |
name: Lint | |
uses: nogic1008/actions/.github/workflows/[email protected] | |
lock-file: | |
name: Validate NuGet Lock Files | |
uses: nogic1008/actions/.github/workflows/[email protected] | |
with: | |
update-lock-files: ${{ contains(github.head_ref, 'dependabot') && github.event_name == 'pull_request' }} | |
dotnet-version: ${{ vars.DOTNET_SDK_VERSIONS }} | |
lock-file-path: "**/packages.lock.json" | |
secrets: | |
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-13, macos-latest] | |
framework: [net6.0, net8.0] | |
include: | |
- os: windows-latest | |
framework: net48 | |
exclude: | |
- os: macos-latest | |
framework: net6.0 | |
name: Debug Build & Test | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup .NET SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: ${{ vars.DOTNET_SDK_VERSIONS }} | |
cache: true | |
cache-dependency-path: "**/packages.lock.json" | |
- name: Restore | |
run: dotnet restore | |
- name: Debug Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test -f ${{ matrix.framework }} --no-build -p:TestingPlatformCommandLineArguments="--coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml" | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
disable_search: true | |
file: ./test/Nogic.WritableOptions.Tests/bin/Debug/${{ matrix.framework }}/TestResults/coverage.cobertura.xml | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: ${{ runner.os }},${{ matrix.framework }} |