chore: 更新打包路径 #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --no-cache | |
dotnet build | |
- name: Test | |
run: | | |
dotnet test ./test/UnitTestEditor --collect:"XPlat Code Coverage" | |
dotnet test ./test/UnitTestHoliday --collect:"XPlat Code Coverage" | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |