feat: polyfill document.currentScript.src for IIFE workers #69
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: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node: ["14", "16", "18", "20"] | |
vite: ["2", "3", "4"] | |
name: Node.js ${{ matrix.node }} + Vite ${{ matrix.vite }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Install specified version of Vite | |
run: yarn add vite@^${{ matrix.vite }} | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test | |
- name: Check style | |
if: ${{ matrix.os != 'windows-latest' }} | |
run: yarn format --check |