mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-03 12:37:40 +08:00
e4834ed1da
* docs: update .NET7 RC2 * fix target framework * update to .net 7 GA * update yaml * fix wasmhost * update document
58 lines
1.4 KiB
YAML
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
|