Skip to content

feat: remove node 21 usage on test [no issue] (#1057) #869

feat: remove node 21 usage on test [no issue] (#1057)

feat: remove node 21 usage on test [no issue] (#1057) #869

Workflow file for this run

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