Skip to content

feat(01): 01-basic 作业提交 #23

feat(01): 01-basic 作业提交

feat(01): 01-basic 作业提交 #23

Workflow file for this run

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