Fix crash on unit selection (#87) #450
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
| # Docs for the Azure Web Apps Deploy action: https://go.microsoft.com/fwlink/?linkid=2134798 | |
| # More GitHub Actions for Azure: https://go.microsoft.com/fwlink/?linkid=2135048 | |
| name: CI/CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout Github Action" | |
| uses: actions/checkout@master | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| cache-dependency-path: src/CookTime/client-app/package-lock.json | |
| - name: Install dependencies | |
| run: cd src/CookTime/client-app && npm ci | |
| - name: Lint | |
| run: scripts/test --lint | |
| test: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - name: "Checkout Github Action" | |
| uses: actions/checkout@master | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - name: Server | |
| run: scripts/server | |
| - name: Test | |
| run: scripts/test | |
| - name: Test Report | |
| uses: dorny/test-reporter@v1 | |
| if: always() | |
| with: | |
| name: .NET Tests | |
| path: src/CookTimeTests/TestResults/*.trx | |
| reporter: dotnet-trx | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| steps: | |
| - name: "Checkout Github Action" | |
| uses: actions/checkout@master | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: "10.0.x" | |
| - name: Build | |
| run: scripts/build | |
| - name: Publish | |
| run: scripts/publish ${{env.DOTNET_ROOT}}/myapp | |
| - name: Run Azure webapp deploy action using publish profile credentials | |
| uses: azure/webapps-deploy@v2 | |
| with: | |
| app-name: kooktime | |
| slot-name: Production | |
| publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0F6BD73EF94E4FA98AD4FB7410D07D5C }} | |
| package: ${{env.DOTNET_ROOT}}/myapp |