Skip to content

Commit

Permalink
Change directory before restore in release workflow (#617)
Browse files Browse the repository at this point in the history
* change directory before restore

* try coverlet.collector

* update nuget badge to have downloads

* codecov file location
  • Loading branch information
acesnik authored Mar 9, 2022
1 parent 67ae062 commit c1e442a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,19 @@ jobs:
dotnet build --no-restore;
dotnet build --no-restore ./Test/Test.csproj;
dotnet build --no-restore ./TestFlashLFQ/TestFlashLFQ.csproj;
- name: Add msbuild
- name: Add coverlet collector
run:
cd mzLib;
dotnet add Test/Test.csproj package coverlet.msbuild;
dotnet add TestFlashLFQ/TestFlashLFQ.csproj package coverlet.msbuild;
dotnet add Test/Test.csproj package coverlet.collector;
dotnet add TestFlashLFQ/TestFlashLFQ.csproj package coverlet.collector;
- name: Test
run:
cd mzLib;
dotnet test --no-build --verbosity normal
/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
/p:CoverletOutput='../../coberturatest.xml'
--collect:"XPlat Code Coverage" /p:CoverletOutputFormat=cobertura
./Test/Test.csproj;
dotnet test --no-build --verbosity normal
/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
/p:CoverletOutput='../../coberturatestlfq.xml'
--collect:"XPlat Code Coverage" /p:CoverletOutputFormat=cobertura
./TestFlashLFQ/TestFlashLFQ.csproj;
- name: Directory lists
run:
Expand All @@ -48,4 +46,4 @@ jobs:
uses: codecov/codecov-action@v2
with:
verbose: true
files: ./coberturatest.xml,./coberturatestlfq.xml
files: mzLib/Test*/TestResults/*/coverage.cobertura.xml
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Verify commit exists in origin/master
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/${env:RELEASE_BRANCH}
env:
RELEASE_BRANCH: master

- name: Restore dependencies
run: dotnet restore

run: |
cd mzLib
dotnet restore
- name: Build
run: |
$version= &git describe --tags
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ A library for mass spectrometry projects.
[![codecov](https://codecov.io/gh/smith-chem-wisc/mzLib/branch/master/graph/badge.svg)](https://codecov.io/gh/smith-chem-wisc/mzLib)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/10000/badge.svg)](https://scan.coverity.com/projects/mzlib)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/1047dac2ae8d4d94b104c3cb3ca44926)](https://www.codacy.com/app/solntsev_2/mzLib?utm_source=github.com&utm_medium=referral&utm_content=smith-chem-wisc/mzLib&utm_campaign=Badge_Grade)
[![NuGet version (mzLib)](https://img.shields.io/nuget/v/mzLib.svg?style=flat-square)](https://www.nuget.org/packages/mzLib/)

[![NuGet Badge](https://buildstats.info/nuget/mzLib)](https://www.nuget.org/packages/mzLib/)

Releases are here: https://www.nuget.org/packages/mzLib/

Expand Down

0 comments on commit c1e442a

Please sign in to comment.