Bump coverlet.collector from 3.2.0 to 6.0.2 #46
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: Basic Repos | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
release: | |
types: | |
- created | |
jobs: | |
Build_Test: | |
runs-on: ubuntu-latest | |
env: | |
package_name: BasicRepos | |
project_path: src/BasicRepos.csproj | |
test_project_path: tests/BasicRepos.Test.csproj | |
steps: | |
- name: checkout | |
uses: actions/[email protected] | |
- name: Add Package source | |
run: dotnet nuget add source https://nuget.pkg.github.com/astro-panda/index.json --name github --username "${{ github.repository_owner }}" --password "${{ secrets.GITHUB_TOKEN }}" --store-password-in-clear-text | |
- name: Restore ${{ env.package_name }} | |
run: |- | |
dotnet restore ${{ env.project_path }} | |
- name: Build ${{ env.package_name }} | |
run: |- | |
dotnet build --no-restore ${{ env.project_path }} -c Release | |
- name: Test ${{ env.package_name }} | |
if: ${{ env.test_project_path }} | |
run: |- | |
dotnet test ${{ env.test_project_path }} --logger trx --results-directory "${{ runner.temp }}" | |
- name: Test ${{ env.package_name }} | |
if: always() | |
uses: NasAmin/[email protected] | |
with: | |
TRX_PATH: "${{ runner.temp }}" | |
REPO_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Pack ${{ env.package_name }} | |
if: github.event_name == 'release' | |
run: |- | |
dotnet pack ${{ env.project_path }} -p:Version=${{ github.ref_name }} --output "${{ runner.temp }}" | |
- name: Publish ${{ env.package_name }} to GitHub Packages | |
if: github.event_name == 'release' | |
run: |- | |
dotnet nuget push ${{ runner.temp }}/*.nupkg -s github | |
- name: Publish ${{ env.package_name }} to NuGet | |
if: github.event_name == 'release' && always() | |
run: |- | |
dotnet nuget push ${{ runner.temp }}/*.nupkg -k ${{ secrets.NUGET_PUBLIC_API_KEY }} -s https://api.nuget.org/v3/index.json |