chore(deps): update actions/upload-artifact action to v4.4.2 (#141) #276
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: 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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
fetch-depth: 2 | |
filter: blob:none # We don't need all blobs | |
- uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }} | |
- uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | |
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@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
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@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0 | |
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@84480863f228bb9747b473957fcc9e309aa96097 # v4.4.2 | |
with: | |
name: packages | |
path: bin/*.nupkg |