0.32.0 #3543
This file contains 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' | |
- 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) | |
run: | | |
cd functions | |
npm ci | |
- name: npm test (Firestore rules and functions/) | |
run: | | |
npm run test | |
- name: build functions/ | |
run: | | |
cd functions | |
npm run build | |
- name: run lighthouse ci | |
run: | | |
npm install -g @lhci/[email protected] | |
lhci autorun --config=./lighthouse/lighthouserc.json | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} |