diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..6389598c24 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 --version 8.6.14 && 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 \ No newline at end of file