Fix ESM imports and tree-shaking #87
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: Build pull request | ||
concurrency: | ||
group: pr-on-${{ github.event_name }}-from-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
on: | ||
pull_request: | ||
branches: | ||
- "master" | ||
jobs: | ||
lint-pull-request: | ||
name: Lint | ||
uses: ./.github/workflows/lint.yml | ||
build-and-test-pull-request: | ||
name: Test | ||
needs: lint-pull-request | ||
uses: ./.github/workflows/test.yml | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node: [16.x, 18.x, 20.x] | ||
target: [es5, es2015, esnext] | ||
module: [cjs, esm, umd] | ||
include: | ||
- {node: 16.x, target: ix} | ||
- {node: 18.x, target: ix} | ||
- {node: 20.x, target: ix} | ||
- {node: 20.x, target: src, args: --coverage} | ||
with: | ||
args: ${{ matrix.args }} | ||
node: ${{ matrix.node }} | ||
target: ${{ matrix.target }} | ||
module: ${{ matrix.module }} | ||
test-tree-shaking-pull-request: | ||
needs: build-and-test-pull-request | ||
name: Bundle | ||
uses: ./.github/workflows/bundle.yml | ||
Check failure on line 41 in .github/workflows/main.pr.yml GitHub Actions / Build pull requestInvalid workflow file
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
bundler: [esbuild, rollup, webpack] | ||
target: [es5, es2015, esnext] | ||
module: [cjs, esm, umd] | ||
include: | ||
- {bundler: esbuild, target: ix} | ||
- {bundler: rollup, target: ix} | ||
- {bundler: webpack, target: ix} | ||
with: | ||
bundler: ${{ matrix.bundler }} | ||
target: ${{ matrix.target }} | ||
module: ${{ matrix.module }} |