mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-04 04:59:38 +08:00
325e300d39
* feat: 更改 IsFristQuery 为 IsFirstQuery * refactor: 更新单词 * test: 更新单元测试 * refactor: 增加排除标签 * chore: 更新自动化脚本
38 lines
721 B
YAML
38 lines
721 B
YAML
name: Build project
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
- dev
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET Core SDK
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Build
|
|
env:
|
|
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
|
Bundle: True
|
|
run: |
|
|
dotnet restore src/BootstrapBlazor --no-cache
|
|
dotnet build src/BootstrapBlazor
|
|
|
|
- name: Test
|
|
run: |
|
|
dotnet test test/UnitTest --collect:"XPlat Code Coverage"
|
|
|
|
- name: Upload to Codecov
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|