chore(eslint): setup eslint and autofix errors #3
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: CI | |
on: | |
pull_request: | |
branches: ["*"] | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 # Use shorter tag version | |
- uses: pnpm/[email protected] # Use shorter tag version | |
- name: Install Node.js | |
uses: actions/setup-node@v4 # Use shorter tag version | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install Dependencies | |
run: pnpm i --frozen-lockfile | |
lint: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Lint Format | |
run: pnpm lint:prettier | |
- name: Run ESLint | |
run: pnpm lint | |
build: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- name: Build Check | |
run: pnpm build |