Skip to content

re-enable integration test #144

re-enable integration test

re-enable integration test #144

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@v4
with:
show-progress: false
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '2.x'
- 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 -v minimal && dotnet build
- name: Unit Test
run: dotnet test aliyun-net-sdk-core.Tests/ /p:AltCover=true
- name: Upload Coverage Report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
- name: Setup proxy
run: |
npm install o_o -g
o_o &
- name: Integration Test
run: dotnet test aliyun-sdk-feature-test/
if: env.ACCESS_KEY_ID != ''
env:
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }}