fix: update exec test commands #1600
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: 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@v4 | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: npm install, build | |
| run: | | |
| npm install | |
| npm run build:prod | |
| - name: run Lighthouse CI | |
| run: | | |
| npm install -g @lhci/cli@0.10.x | |
| lhci autorun | |
| - name: upload artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Lighthouse reports | |
| path: ${{ github.workspace }}/lighthouseReport | |
| retention-days: 1 |