New #5
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: Lint (New) | |
on: | |
pull_request: | |
types: [opened, reopened, edited, synchronize] | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
cache: "yarn" | |
- name: Install dependencies | |
run: | | |
mkdir temp-ci | |
cp ci-package.json temp-ci/package.json | |
cd temp-ci | |
yarn install | |
- name: Run ESLint | |
run: | | |
cd temp-ci | |
yarn eslint ../index.js | |
- name: Run Prettier | |
run: | | |
cd temp-ci | |
yarn prettier --check ../index.js |