|
18 | 18 |
|
19 | 19 | env: |
20 | 20 | PUPPETEER_SKIP_DOWNLOAD: 'true' # only needed for @best/runner-local, unused here |
| 21 | + CHROME_VERSION: 130 |
21 | 22 |
|
22 | 23 | jobs: |
23 | 24 | run-unit-tests: |
24 | 25 | runs-on: ubuntu-22.04 |
25 | 26 | steps: |
26 | 27 | - name: Checkout repository |
27 | 28 | uses: actions/checkout@v4 |
28 | | - |
29 | 29 | - name: Setup Node |
30 | 30 | uses: actions/setup-node@v4 |
31 | 31 | with: |
32 | 32 | node-version: '20.19.4' |
33 | 33 | cache: 'yarn' |
34 | | - |
35 | | - # Needed for perf smoke tests, matches the chromedriver version installed by tachometer (https://github.com/google/tachometer/blob/main/README.md#on-demand-dependencies) |
36 | | - # chrome-version documentation can be found here: https://github.com/browser-actions/setup-chrome?tab=readme-ov-file#usage |
37 | | - - name: Setup chrome |
38 | | - uses: browser-actions/setup-chrome@v1 |
39 | | - with: |
40 | | - chrome-version: 130 |
41 | | - id: setup-chrome |
42 | | - |
43 | 34 | - name: Install dependencies |
44 | 35 | run: yarn install --frozen-lockfile |
45 | 36 |
|
46 | | - # Pin chromedriver to the same version as Chrome above, so Tachometer uses this version. |
47 | | - # See: https://github.com/google/tachometer#on-demand-dependencies |
48 | | - - name: Install chromedriver |
49 | | - run: yarn add -W chromedriver@^130 |
50 | | - |
51 | 37 | - name: Check package.json integrity |
52 | 38 | run: node ./scripts/tasks/check-and-rewrite-package-json.js --test |
53 | 39 | - name: Check licenses are up to date |
|
73 | 59 | with: |
74 | 60 | name: test-coverage-report |
75 | 61 | path: coverage/ |
| 62 | + |
| 63 | + # Needed for perf smoke tests, matches the chromedriver version installed by tachometer (https://github.com/google/tachometer/blob/main/README.md#on-demand-dependencies) |
| 64 | + # chrome-version documentation can be found here: https://github.com/browser-actions/setup-chrome?tab=readme-ov-file#usage |
| 65 | + - name: Setup chrome |
| 66 | + uses: browser-actions/setup-chrome@v2 |
| 67 | + with: |
| 68 | + chrome-version: ${{ env.CHROME_VERSION }} |
| 69 | + id: setup-chrome |
| 70 | + |
| 71 | + # Pin chromedriver to the same version as Chrome above, so Tachometer uses this version. |
| 72 | + # See: https://github.com/google/tachometer#on-demand-dependencies |
| 73 | + - name: Install chromedriver |
| 74 | + run: yarn add -W chromedriver@^${{ env.CHROME_VERSION }} --ignore-scripts |
| 75 | + |
76 | 76 | - name: Run benchmark smoke tests |
77 | | - run: CHROME_BINARY=${{ steps.setup-chrome.outputs.chrome-path }} BENCHMARK_SMOKE_TEST=1 yarn test:performance |
| 77 | + run: yarn test:performance |
| 78 | + env: |
| 79 | + BENCHMARK_SMOKE_TEST: 1 |
| 80 | + CHROME_BINARY: ${{ steps.setup-chrome.outputs.chrome-path }} |
| 81 | + |
78 | 82 | - name: Add step summary |
79 | 83 | # 1. Remove leading/trailing "border" lines from output |
80 | 84 | # 2. Wrap file names in backticks |
|
0 commit comments