File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 run : npm ci
1919 - name : Build extension
2020 run : npm run build
21+ - name : Download Firefox Nightly
22+ if : matrix.name == 'firefox'
23+ run : |
24+ NIGHTLY_NAME=$(curl -sL https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/ | rg -o "firefox-[0-9.]+a1.en-US.linux-x86_64.tar.xz" | head -n 1)
25+ curl -sL "https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/${NIGHTLY_NAME}" -o /tmp/firefox-nightly.tar.xz
26+ tar -xf /tmp/firefox-nightly.tar.xz -C /tmp
27+ echo "FIREFOX_BIN=/tmp/firefox/firefox" >> $GITHUB_ENV
2128 - name : TypeScript checks
2229 run : npm run test:types
2330 - uses : actions/upload-artifact@v4
2936 runs-on : ubuntu-latest
3037 strategy :
3138 matrix :
32- browser : [firefox, chrome]
39+ include :
40+ - name : firefox
41+ playwright : firefox
42+ script : firefox
43+ load : firefox
44+ - name : chrome
45+ playwright : chromium
46+ script : chrome
47+ load : chromium
3348 steps :
3449 - uses : actions/checkout@v4
3550 - name : Use Node.js 20.x
4156 run : npm ci
4257 - name : Build extension
4358 run : npm run build
44- - name : Test on ${{ matrix.browser }}
45- run : npm run test:${{ matrix.browser }}
59+ - name : Install Playwright browsers
60+ run : npx playwright install --with-deps ${{ matrix.playwright }}
61+ - name : Lint on ${{ matrix.name }}
62+ run : npm run test:${{ matrix.script }}
63+ - name : Load extension on ${{ matrix.name }}
64+ run : xvfb-run -a npm run test:load:${{ matrix.load }}
You can’t perform that action at this time.
0 commit comments