Skip to content

Commit

Permalink
Action
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Mar 4, 2024
1 parent cf5cd6e commit b367337
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
name: Format Check
name: Lint and Format Check

on: push

jobs:
main:
name: Prettier
name: Run ESLint and Prettier
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up pNPM
uses: pnpm/action-setup@v3
with:
version: 8

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'

- name: Install ESLint and Prettier
run: pnpm install

- name: Install Prettier
run: npm install next prettier
- name: Run ESLint
run: npm run lint:check

- name: Run Prettier
run: npm run format:check

0 comments on commit b367337

Please sign in to comment.