feat: reference implementation release (#918) #30
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: Lighthouse | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lhci: | |
if: ${{ !contains(github.event.pull_request.title, '[skip test]') }} | |
name: Lighthouse Desktop | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: npm install, build | |
run: | | |
npm install | |
npm run build | |
- name: run Lighthouse CI | |
run: | | |
npm install -g @lhci/[email protected] | |
lhci autorun | |
- name: upload artifacts | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Lighthouse reports | |
path: ${{ github.workspace }}/lighthouseReport | |
retention-days: 1 |