feat: remove node 21 usage on test [no issue] (#1057) #869
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] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: yarn install --immutable --immutable-cache | |
- name: Check package.json | |
run: node scripts/check-packagejson.mjs | |
- name: Prettier | |
run: yarn run lint:prettier | |
if: startsWith(matrix.node-version, '20.') | |
- name: Eslint | |
run: yarn run lint:eslint | |
- name: Test | |
run: yarn run test | |
- name: Check working directory is clean | |
if: startsWith(matrix.node-version, '20.') | |
run: | | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "Working directory not clean:" | |
git status --porcelain --untracked-files=all | |
exit 1 | |
fi |