fix: fix steps in CI test (#99) #440
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 | |
- 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: Build webextension (Chrome) | |
run: npm run dist chrome | |
if: matrix.os == 'ubuntu-latest' | |
working-directory: packages/webextension |