-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
313cf95
commit 03397f4
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: .NET CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 2.1.811 | ||
- name: install altcover | ||
run: dotnet tool install --global altcover.visualizer --version 8.6.14 | ||
- name: Install dependencies | ||
run: cd aliyun-net-sdk-core.Tests/ && dotnet add package AltCover && cd ../ && dotnet restore && dotnet build | ||
- name: Test | ||
run: dotnet test aliyun-net-sdk-core.Tests /p:AltCover=true | ||
- name: Codecov | ||
run: bash <(curl -s https://codecov.io/bash) -c -F unittest |