|
4 | 4 | branches: |
5 | 5 | - main |
6 | 6 | paths: |
7 | | - - 'packages/website/**' |
8 | | - - '.github/workflows/website.yml' |
9 | | - - 'package-lock.json' |
| 7 | + - "packages/website/**" |
| 8 | + - ".github/workflows/website.yml" |
| 9 | + - "package-lock.json" |
10 | 10 | pull_request: |
11 | 11 | paths: |
12 | | - - 'packages/website/**' |
13 | | - - '.github/workflows/website.yml' |
14 | | - - 'package-lock.json' |
| 12 | + - "packages/website/**" |
| 13 | + - ".github/workflows/website.yml" |
| 14 | + - "package-lock.json" |
15 | 15 | jobs: |
16 | 16 | test: |
17 | 17 | name: Test |
@@ -137,6 +137,20 @@ jobs: |
137 | 137 |
|
138 | 138 | [build log](/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY |
139 | 139 |
|
| 140 | + lighthouseci: |
| 141 | + needs: preview |
| 142 | + runs-on: ubuntu-latest |
| 143 | + steps: |
| 144 | + - uses: actions/checkout@v2 |
| 145 | + - name: Audit URLs using Lighthouse |
| 146 | + uses: treosh/lighthouse-ci-action@v9 |
| 147 | + with: |
| 148 | + urls: | |
| 149 | + ${{ steps.cloudflare_url.outputs.stdout }} |
| 150 | + budgetPath: ./budget.json # test performance budgets |
| 151 | + uploadArtifacts: true # save results as an action artifacts |
| 152 | + temporaryPublicStorage: true # upload lighthouse report to the temporary storage |
| 153 | + |
140 | 154 | changelog: |
141 | 155 | if: github.event_name == 'push' && github.ref == 'refs/heads/main' |
142 | 156 | name: Changelog |
@@ -167,7 +181,7 @@ jobs: |
167 | 181 | - uses: actions/checkout@v2 |
168 | 182 | - uses: actions/setup-node@v2 |
169 | 183 | with: |
170 | | - node-version: '16' |
| 184 | + node-version: "16" |
171 | 185 | registry-url: https://registry.npmjs.org/ |
172 | 186 | - uses: bahmutov/npm-install@v1 |
173 | 187 | - run: npm run build -w packages/client |
|
0 commit comments