feat(01): 01-basic 作业提交 #23
This file contains hidden or 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: test-01-basic | |
| on: | |
| pull_request: | |
| branches: [homework/01-basic] | |
| jobs: | |
| test-01-basic: | |
| if: true | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Build solution | |
| working-directory: ./src | |
| run: dotnet build -c Release | |
| - name: Test prepare | |
| working-directory: ./src | |
| run: dotnet test test-00-prepare -c Release | |
| - name: Test basic | |
| working-directory: ./src | |
| run: dotnet test test-01-basic -c Release | |
| - name: Check report existence | |
| id: check_files | |
| uses: andstor/file-existence-action@v3 | |
| with: | |
| files: "docs/01-basic/report.md" | |
| - name: Report exists | |
| if: steps.check_files.outputs.files_exists == 'false' | |
| run: | | |
| echo Missing report: docs/01-basic/report.md | |
| exit 1 |