chore(deps): bump pnpm/action-setup from 4 to 5 in the ci-dependencies group #444
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: Pull Request Events | |
| on: pull_request | |
| permissions: | |
| contents: write | |
| id-token: write | |
| pull-requests: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-check: | |
| name: Lint and check types | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Set up code | |
| uses: actions/checkout@v6 | |
| - name: 📦 Setup PNPM | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| version: latest | |
| - name: ⎔ Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: 📥 Download dependencies | |
| run: pnpm install | |
| - name: 🧶 Lint | |
| run: pnpm run lint | |
| - name: 🧪 Check types | |
| run: pnpm run check | |
| test-unit: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| env: | |
| VITE_DATABASE_CONFIG: '{"databaseName":"DB_NAME","user":"USER"}' | |
| steps: | |
| - name: ⬇️ Set up code | |
| uses: actions/checkout@v6 | |
| - name: 📦 Setup PNPM | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| version: latest | |
| - name: ⎔ Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: 📥 Download dependencies | |
| run: pnpm install | |
| - name: 🧪 Run tests | |
| run: pnpm test | |
| deploy-preview: | |
| name: Firebase preview | |
| runs-on: ubuntu-latest | |
| needs: [test-unit, test-check] | |
| if: ${{ github.event.sender.type == 'User' }} | |
| environment: | |
| name: preview | |
| steps: | |
| - name: ⬇️ Set up code | |
| uses: actions/checkout@v6 | |
| - name: 🚀 Deploy | |
| uses: agrc/firebase-website-deploy-composite-action@v2 | |
| with: | |
| identity-provider: ${{ secrets.IDENTITY_PROVIDER }} | |
| service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }} | |
| project-id: dev | |
| preview: yes | |
| build-command: pnpm run build --mode dev | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| env: | |
| VITE_DISCOVER_QUAD_WORD: ${{ secrets.DISCOVER }} | |
| VITE_FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | |
| VITE_DATABASE_CONFIG: ${{ secrets.DATABASE_CONFIG }} |