Skip to content

refactor into reusable workflows #85

refactor into reusable workflows

refactor into reusable workflows #85

Workflow file for this run

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

Check failure on line 15 in .github/workflows/main.pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.pr.yml

Invalid workflow file

invalid value workflow reference: no version specified
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
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 }}