ant-design-blazor/.github/workflows/pull-request.yml
Huei Feng e672e4f363 chore: add .NET 5 target framework to all projects (#758)
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-14 23:44:48 +08:00

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 }}