Skip to content

use github actions

use github actions #6

Workflow file for this run

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.202
- name: install altcover
run: dotnet tool install --global altcover.visualizer --version 6.7.750
- name: Install dependencies
run: cd aliyun-net-sdk-core.Tests/ && dotnet add package AltCover --version 6.7.750 && 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