Skip to content

Commit 4b2fc1b

Browse files
JacksonTianyndu13
authored andcommitted
use github actions
1 parent 6dfd430 commit 4b2fc1b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: .NET CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup .NET Core
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: '2.x'
20+
- name: install altcover
21+
run: dotnet tool install --global altcover.visualizer --version 8.6.14
22+
- name: Install dependencies
23+
run: cd aliyun-net-sdk-core.Tests/ && dotnet add package AltCover --version 8.6.14 && cd ../ && dotnet restore && dotnet build
24+
- name: Test
25+
run: dotnet test aliyun-net-sdk-core.Tests/ /p:AltCover=true
26+
- name: Codecov
27+
run: bash <(curl -s https://codecov.io/bash) -c -F unittest

0 commit comments

Comments
 (0)