Bump happy-dom from 15.7.4 to 15.10.2 in /tests #209
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 | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 20.x] | |
zustand: [ | |
4.2.0, # Oldest zustand TS supported | |
4.0.0, # Oldest zustand JS supported | |
4, # Latest zustand v5 supported | |
latest # Latest zustand supported | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8 | |
run_install: false | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Install Zustand ${{ matrix.zustand }} | |
run: pnpm add zustand@${{ matrix.zustand }} -w | |
- name: Patch tsup config | |
if: ${{ matrix.zustand == '4.0.0' }} | |
# Patch the tsup config to use `dts: false` for Zustand 4.0.0 | |
run: | | |
sed -i~ 's/dts: true/dts: false/' tsup.config.ts | |
- name: Build | |
run: pnpm run build | |
- name: Test | |
run: pnpm run test:ci |