修改reade.mf的预览图 #2
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: Build and Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| backend-build: | |
| name: .NET Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET 8 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore Juggle.sln | |
| - name: Build | |
| run: dotnet build Juggle.sln --verbosity quiet --no-restore | |
| - name: Test | |
| run: dotnet test Juggle.sln --verbosity quiet --no-build --nologo | |
| frontend-build: | |
| name: Frontend Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: JuggleNet6.Frontend/package-lock.json | |
| - name: Install dependencies | |
| run: cd JuggleNet6.Frontend && npm ci | |
| - name: Build | |
| run: cd JuggleNet6.Frontend && npm run build |