Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bump happy-dom from 18.0.1 to 20.0.0 #445

Bump happy-dom from 18.0.1 to 20.0.0

Bump happy-dom from 18.0.1 to 20.0.0 #445

Workflow file for this run

name: Test
on:
push:
branches:
- main
- next
pull_request:
permissions:
contents: read
jobs:
full:
name: Node.js Latest Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
- name: Install pnpm
uses: pnpm/action-setup@f2b2b233b538f500472c7274c7012f57857d8ce0 # v4.1.0
with:
version: 10
- name: Install Node.js
uses: actions/setup-node@d7a11313b581b306c961b506cfc8971208bb03f6 # v4.4.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Run tests
run: pnpm test
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 22
- 20
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
- name: Install pnpm
uses: pnpm/action-setup@f2b2b233b538f500472c7274c7012f57857d8ce0 # v4.1.0
with:
version: 10
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@d7a11313b581b306c961b506cfc8971208bb03f6 # v4.4.0
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Run unit tests
run: pnpm vitest run
deploy:
name: Demo Deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs:
- full
permissions:
contents: write
steps:
- name: Checkout the repository
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
with:
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@f2b2b233b538f500472c7274c7012f57857d8ce0 # v4.1.0
with:
version: 10
- name: Install Node.js
uses: actions/setup-node@d7a11313b581b306c961b506cfc8971208bb03f6 # v4.4.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Build
run: pnpm build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
with:
folder: test/demo/dist
branch: gh-pages