Skip to content

Upgrade to Node.js 20 (LTS) #1012

Upgrade to Node.js 20 (LTS)

Upgrade to Node.js 20 (LTS) #1012

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
workflow_dispatch:
workflow_call:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
~/.cache
~/root/.cache/firebase/emulators
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Use Node.js ${{matrix.node-version}}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- name: Use Java
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: 'zulu'
java-version: '17.x'
- name: npm install
run: |
npm ci
npm --prefix functions ci functions
env:
CI: true
- name: npm lint
run: |
npm run lint
npm run lint:style
- name: npm test:unit
run: |
npm run test:unit
npm run test:unit:firestore
env:
CI: true