Bump coverlet.collector from 6.0.2 to 6.0.3 in /src #255
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: CI | |
on: | |
push: | |
tags: | |
- '[0-9].[0-9]+.[0-9]' | |
- '[0-9].[0-9]+.[0-9]+-*' | |
branches: | |
- main | |
- release-* | |
pull_request: | |
workflow_dispatch: | |
env: | |
DOTNET_NOLOGO: true | |
jobs: | |
build: | |
name: Build and test on ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-2019 | |
name: Windows | |
- os: ubuntu-20.04 | |
name: Linux | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4.2.0 | |
with: | |
dotnet-version: | | |
7.0.x | |
6.0.x | |
- name: Build | |
run: dotnet build src --configuration Release | |
- name: Tests | |
run: dotnet test src --configuration Release --no-build | |
- name: Upload packages | |
if: matrix.name == 'Linux' | |
uses: actions/upload-artifact@v4.5.0 | |
with: | |
name: nuget-packages | |
path: nugets/ | |
retention-days: 2 | |
release: | |
needs: build | |
name: Release to Feedz.io | |
if: startsWith(github.ref, 'refs/tags') | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Setup .NET 6 | |
uses: actions/setup-dotnet@v4.2.0 | |
with: | |
dotnet-version: 6.0.x | |
- name: Download artifacts | |
uses: actions/download-artifact@v4.1.8 | |
with: | |
name: nuget-packages | |
path: nugets/ | |
- name: Push package to Feedz.io | |
run: dotnet nuget push ./nugets/*.nupkg --source https://f.feedz.io/mauroservienti/pre-releases/nuget --api-key ${{ secrets.FEEDZ_API_KEY }} | |
- name: Push symbols to Feedz.io | |
run: dotnet nuget push ./nugets/*.snupkg --source https://f.feedz.io/mauroservienti/pre-releases/symbols --api-key ${{ secrets.FEEDZ_API_KEY }} |