fix: Chrome extension Manifest v3 support for webextension #461
Workflow file for this run
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: test | |
on: [ push, pull_request ] | |
env: | |
CI: true | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: "Test on Node.js ${{ matrix.node-version }} x ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [ 18, 20, 22 ] | |
os: [ ubuntu-latest, windows-latest ] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
cache: "yarn" | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
run: yarn install | |
- name: Test | |
run: yarn test | |
- name: Apply patch | |
run: patch -p1 < diff.patch | |
if: matrix.os == 'ubuntu-latest' | |
working-directory: packages/webextension | |
- name: Build webextension (Chrome) | |
run: npm run dist chrome | |
if: matrix.os == 'ubuntu-latest' | |
working-directory: packages/webextension |