mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 04:58:05 +08:00
29e3ce3583
* fix(module:interop): reorganization into classes * comments clean-up * Add typescript test project * fix: sync with pull request #1765: support drag * github test action fix attempt * tests: jsinterop test mock fix * codecov added to ts tests * add generated split js to gitignore * fix: coverage github action Co-authored-by: James Yeung <shunjiey@hotmail.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 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
|
|
|
|
- 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 📝
|
|
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@v2
|
|
with:
|
|
files: ./coverage.cobertura.xml,./cobertura-coverage.xml
|
|
fail_ci_if_error: false |