Skip to content

chore(deps): update actions/checkout action to v4.1.7 #239

chore(deps): update actions/checkout action to v4.1.7

chore(deps): update actions/checkout action to v4.1.7 #239

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
env:
DOTNET_NOLOGO: true
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 2
filter: blob:none # We don't need all blobs
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
- uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: |
6
8
dotnet-quality: ga
- name: restore
run: dotnet restore
- name: build
run: dotnet build --no-restore ./MimeMapping.sln
- name: test
run: dotnet test --no-build ./MimeMapping.sln
- name: Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
files: '**/TestResults/*/*.cobertura.xml'
token: ${{ secrets.CODECOV_TOKEN }}
build:
needs: [test]
runs-on: windows-latest
timeout-minutes: 15
env:
CONFIGURATION: Release
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0 # needed so minver finds git tags https://github.com/actions/checkout/issues/172
filter: blob:none # We don't need all blobs
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
- name: restore
run: dotnet restore
- name: build
run: dotnet build -c release --no-restore
- name: pack
run: dotnet pack -o bin --no-build
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: packages
path: bin/*.nupkg