ant-design-blazor/.github/workflows/pull-request.yml
James Yeung e4834ed1da
add target to .NET 7 (#2810)
* docs: update .NET7 RC2

* fix target framework

* update to .net 7 GA

* update yaml

* fix wasmhost

* update document
2022-11-10 16:00:11 +08:00

58 lines
1.4 KiB
YAML

name: Pull Request Checks
on:
pull_request:
branches:
- master
- feature
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.300
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.101
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100
- uses: actions/setup-node@v1
with:
node-version: "10.x"
- name: Check Building ⚙
run: |
npm install
dotnet build
- name: Test 📝
run: |
dotnet test ./tests/AntDesign.Tests/AntDesign.Tests.csproj --configuration:Release --collect:"XPlat Code Coverage"
npm install ./tests/AntDesign.Tests.Js
npm --prefix ./tests/AntDesign.Tests.Js run test-cov
find ./coverage ./tests -name "*coverage*.xml" -type f -exec cp {} ./ \;
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.cobertura.xml,./cobertura-coverage.xml
fail_ci_if_error: false