fix: also add test #2350
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: Push CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: "https://registry.npmjs.org" | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Checks | |
run: yarn run checks | |
- name: Prettier | |
run: yarn run lint:prettier | |
if: startsWith(matrix.node-version, '22.') | |
- name: Typescript | |
run: yarn run tsc | |
if: startsWith(matrix.node-version, '22.') | |
- name: Eslint | |
run: yarn run lint:eslint | |
if: startsWith(matrix.node-version, '22.') | |
- name: Check nothing was forgotten before commit | |
if: startsWith(matrix.node-version, '22.') | |
run: yarn run repository-check-dirty |