Skip to content

Commit

Permalink
use github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian authored and 飞澋 committed Jul 8, 2024
1 parent 313cf95 commit 03397f4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit 03397f4

Please sign in to comment.