feat!: ESM only, Node 20+ #100
Workflow file for this run
This file contains hidden or 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: Validate | |
| on: | |
| # Run on all PRs (regardless of base branch) | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| # Run on direct pushes to the default branch only (avoid duplicate runs for PR branches) | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # Ensure only one run per PR/branch is active; cancel superseded runs on new pushes | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| strategy: | |
| matrix: | |
| node: ['20.19.0'] | |
| name: Node v${{ matrix.node }} | |
| steps: | |
| - name: Checkout Commit | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Checkout Master | |
| run: git branch -f master origin/master | |
| - name: Install pnpm | |
| run: npm install pnpm -g | |
| - name: Sanity Check | |
| run: | | |
| echo branch `git branch --show-current`; | |
| echo node `node --version`; | |
| echo yarn `pnpm --version` | |
| - name: pnpm install | |
| run: pnpm install | |
| - name: Audit Dependencies | |
| run: pnpm security | |
| - name: Build Packages | |
| run: pnpm --recursive build | |
| - name: Lint Repo | |
| run: pnpm lint:js | |
| - name: Run Tests | |
| run: pnpm ci:test |