chore(deps): Bump svelte from 5.39.3 to 5.42.2 in /ClientApp #24
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, develop] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| DOTNET_VERSION: '9.0.x' | |
| NODE_VERSION: '24.x' | |
| CI: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: "npm" | |
| cache-dependency-path: ClientApp/package-lock.json | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Install frontend dependencies | |
| run: npm ci | |
| working-directory: ./ClientApp | |
| - name: Build frontend | |
| run: npm run build | |
| working-directory: ./ClientApp | |
| - name: Build backend with CI flag | |
| run: dotnet build --no-restore --configuration Release | |
| env: | |
| CI: true | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal --configuration Release | |
| env: | |
| CI: true | |
| docker: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: false | |
| tags: pingcrm:latest | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |