Update hooks (major) #2953
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node 12 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 12.x | |
- name: Use cached node_modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: nodeModules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
nodeModules- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Lint and Tests | |
run: yarn lint & yarn test --ci --coverage --maxWorkers=2 |