chore(ci): remove the firestore flake probe workflow #867
Workflow file for this run
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: Test and publish | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| paths-ignore: | |
| - "**/*.md" | |
| pull_request: | |
| branches: | |
| - "**" | |
| release: | |
| types: | |
| - published | |
| # Least privilege by default. No job writes to the repo through GITHUB_TOKEN; | |
| # the publish job authenticates to npm with NODE_AUTH_TOKEN. | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | |
| with: | |
| persist-credentials: false | |
| - name: Setup node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - name: Install deps | |
| run: npm ci | |
| - name: Build | |
| id: pack-dir | |
| run: ./build.sh | |
| - name: 'Upload Artifact' | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: reactfire-${{ github.run_id }} | |
| path: | | |
| reactfire.tgz | |
| publish.sh | |
| unpack.sh | |
| retention-days: 1 | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| strategy: | |
| matrix: | |
| node: ["22", "24"] | |
| fail-fast: false | |
| name: Test Node.js ${{ matrix.node }} (Ubuntu) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | |
| with: | |
| persist-credentials: false | |
| - name: Setup node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| check-latest: true | |
| cache: 'npm' | |
| - name: Install deps | |
| run: npm ci | |
| - name: Setup Java | |
| uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Install deps for functions | |
| run: npm install | |
| working-directory: ./functions | |
| - name: Firebase emulator cache | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/.cache/firebase/emulators | |
| key: firebase_emulators | |
| - name: 'Download Artifacts' | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 | |
| - name: Expand Artifact | |
| run: | | |
| chmod +x reactfire-${{ github.run_id }}/unpack.sh | |
| ./reactfire-${{ github.run_id }}/unpack.sh | |
| - name: Run tests | |
| run: npm run test | |
| type-check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| react: ["18", "19"] | |
| fail-fast: false | |
| name: Type check (React ${{ matrix.react }}) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 | |
| with: | |
| persist-credentials: false | |
| - name: Setup node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - name: Install deps | |
| run: npm ci | |
| - name: Install React ${{ matrix.react }} types | |
| run: npm install --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }} @types/react@${{ matrix.react }} @types/react-dom@${{ matrix.react }} | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Type check tests | |
| run: npx tsc --noEmit -p tsconfig.test.json | |
| publish: | |
| runs-on: ubuntu-latest | |
| name: Publish (NPM) | |
| needs: test | |
| if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }} | |
| steps: | |
| - name: Setup node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '24' | |
| registry-url: 'https://wombat-dressing-room.appspot.com' | |
| - name: 'Download Artifacts' | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 | |
| - name: Publish | |
| run: | | |
| cd ./reactfire-${{ github.run_id }}/ | |
| chmod +x publish.sh | |
| ./publish.sh | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |