From 68fbc692fb182e7225aabc3d0cf91c958607fd18 Mon Sep 17 00:00:00 2001 From: Erik Zhang Date: Mon, 9 Dec 2019 21:27:41 +0800 Subject: [PATCH] Coveralls (#165) --- .github/workflows/{dotnetcore.yml => main.yml} | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename .github/workflows/{dotnetcore.yml => main.yml} (58%) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/main.yml similarity index 58% rename from .github/workflows/dotnetcore.yml rename to .github/workflows/main.yml index 868557c9e..12e09452f 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/main.yml @@ -24,4 +24,9 @@ jobs: run: | sudo apt-get --assume-yes install libleveldb-dev libsnappy-dev libc6-dev find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov + dotnet test tests/Neo.Network.RPC.Tests /p:CollectCoverage=true /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/ + dotnet test tests/Neo.Plugins.Storage.Tests /p:CollectCoverage=true /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov /p:MergeWith=${GITHUB_WORKSPACE}/coverage/coverage.json /p:CoverletOutputFormat=lcov + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }}