mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-12 11:55:24 +08:00
e672e4f363
Co-authored-by: ElderJames <shunjiey@hotmail.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Pull Request Checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
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
|
|
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "10.x"
|
|
|
|
- name: Check Building ⚙
|
|
run: |
|
|
npm install
|
|
cp -rf scripts/gh-pages/* scripts/gh-pages/.nojekyll scripts/gh-pages/.spa ./site/AntDesign.Docs.Wasm/wwwroot
|
|
dotnet build
|
|
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net5 -o cargo
|
|
|
|
- name: Test And Coverage Report 📝
|
|
run: |
|
|
dotnet test --collect:"XPlat Code Coverage"
|
|
find ./tests -name "coverage.cobertura.xml" -type f -exec cp {} ./ \;
|
|
bash <(curl -s https://codecov.io/bash) -Z -f coverage.cobertura.xml -t $CODECOV_TOKEN
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |