Set functions runtime to Node 22 — Gen1 auth trigger blocks nodejs24 #3659
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: Build project + unit test | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: 'npm' | |
| # firebase-tools 15.x requires JDK 21+ to run the Firestore emulator | |
| # used by `npm test`. | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| - name: npm install (ci) | |
| run: | | |
| npm ci | |
| - name: npm build | |
| run: | | |
| npm run build | |
| - name: npm lint:i18n | |
| run: | | |
| npm run lint:i18n | |
| - name: functions npm install (ci) | |
| working-directory: ./functions | |
| run: npm ci | |
| - name: npm test (Firestore rules and functions/) | |
| run: | | |
| npm run test | |
| - name: build functions/ | |
| working-directory: ./functions | |
| run: npm run build | |
| - name: run lighthouse ci | |
| run: | | |
| npm install -g @lhci/cli@0.14.x | |
| lhci autorun --config=./lighthouse/lighthouserc.json | |
| env: | |
| LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} |