chore(deps): update dependency @apollo/client to v4.2.10 (#1009) #1281
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: frontend | |
| on: | |
| push: | |
| paths: | |
| - kompassi-v2-frontend/** | |
| - .github/workflows/frontend.yaml | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - kompassi-v2-frontend/** | |
| - .github/workflows/frontend.yaml | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| SKAFFOLD_DEFAULT_REPO: ghcr.io/con2 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: cache-bin | |
| uses: actions/cache@v6 | |
| with: | |
| path: bin | |
| key: ${{ runner.os }}-bin-3 | |
| - if: steps.cache-bin.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir bin | |
| curl -Lo bin/skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | |
| curl -Lo bin/kubectl https://dl.k8s.io/release/v1.36.2/bin/linux/amd64/kubectl | |
| chmod +x bin/skaffold bin/kubectl | |
| - run: echo "$PWD/bin" >> $GITHUB_PATH | |
| - uses: docker/setup-buildx-action@v4 | |
| - id: build | |
| name: skaffold build | |
| run: | | |
| # only push to ghcr.io on push to main | |
| if ! [[ "$GITHUB_EVENT_NAME" == 'push' && "$GITHUB_REF" == 'refs/heads/main' ]]; then | |
| export SKAFFOLD_PUSH=false | |
| fi | |
| skaffold build --file-output build.json | |
| working-directory: kompassi-v2-frontend | |
| - name: Store build.json artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: build-json | |
| path: kompassi-v2-frontend/build.json | |
| # TODO Placeholder for actual tests, so that we can require step "test" to succeed for automerge (backend actually has one) | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: "true" | |
| deploy_staging: | |
| runs-on: qb-arc-runners | |
| needs: build | |
| environment: Staging | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: build-json | |
| path: kompassi-v2-frontend/ | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: kompassi-v2-frontend/package-lock.json | |
| - id: cache-bin | |
| uses: actions/cache@v6 | |
| with: | |
| path: bin | |
| key: ${{ runner.os }}-bin-3 | |
| - if: steps.cache-bin.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir bin | |
| curl -Lo bin/skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | |
| curl -Lo bin/kubectl https://dl.k8s.io/release/v1.36.2/bin/linux/amd64/kubectl | |
| chmod +x bin/skaffold bin/kubectl | |
| - run: echo "$PWD/bin" >> $GITHUB_PATH | |
| - run: npm ci | |
| working-directory: kompassi-v2-frontend | |
| - run: npx tsx manifest.ts | |
| working-directory: kompassi-v2-frontend/kubernetes | |
| env: | |
| ENV: staging | |
| - run: skaffold deploy -n kompassi2-staging -a build.json | |
| working-directory: kompassi-v2-frontend | |
| deploy_production: | |
| runs-on: qb-arc-runners | |
| needs: build | |
| environment: Production | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: build-json | |
| path: kompassi-v2-frontend/ | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: kompassi-v2-frontend/package-lock.json | |
| - id: cache-bin | |
| uses: actions/cache@v6 | |
| with: | |
| path: bin | |
| key: ${{ runner.os }}-bin-3 | |
| - if: steps.cache-bin.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir bin | |
| curl -Lo bin/skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | |
| curl -Lo bin/kubectl https://dl.k8s.io/release/v1.36.2/bin/linux/amd64/kubectl | |
| chmod +x bin/skaffold bin/kubectl | |
| - run: echo "$PWD/bin" >> $GITHUB_PATH | |
| - run: npm ci | |
| working-directory: kompassi-v2-frontend | |
| - run: npx tsx manifest.ts | |
| working-directory: kompassi-v2-frontend/kubernetes | |
| env: | |
| ENV: production | |
| - run: skaffold deploy -n kompassi2-production -a build.json | |
| working-directory: kompassi-v2-frontend |