Merge pull request #1352 from nubolab-ffwd/renovate/eslint-monorepo #2411
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
on: | |
push: | |
branches: [main, next] | |
pull_request: | |
branches: [main, next] | |
name: Tests | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile --strict-peer-dependencies | |
- run: pnpm lint | |
test: | |
name: Node.js ${{ matrix.node-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile --strict-peer-dependencies | |
- run: pnpm test | |
- run: pnpm build | |
test-peer-deps: | |
name: ${{ matrix.package-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package-version: | |
- jsdom@^20.0.0 | |
- jsdom@^21.0.0 | |
- jsdom@^22.0.0 | |
- jsdom@^23.0.0 | |
- jsdom@^24.0.0 | |
- jsdom@^25.0.0 | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: 20.x | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile --strict-peer-dependencies | |
- name: Install ${{ matrix.package-version }} | |
run: pnpm install --no-lockfile ${{ matrix.package-version }} | |
- run: pnpm test | |
- run: pnpm build |