New version #11
Workflow file for this run
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: Linter & Formatter | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
env: | |
HUSKY: 0 | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch Sources | |
uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Setup Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install --immutable --check-cache --check-resolutions | |
- name: Check yarn dedupe | |
run: yarn dedupe --check | |
- name: Run prettier | |
run: yarn run fmt:check | |
- name: Run eslint | |
run: yarn run lint |