Skip to content

Commit

Permalink
adds Prettier GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rcone authored Dec 12, 2024
1 parent 08e89f1 commit 0d777c1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Linting

on: pull_request

jobs:
jest:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "lts/hydrogen"

- run: npm ci

- run: npm run lint:prettier:check
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"services:up": "docker compose -f infra/compose.yaml up -d",
"services:stop": "docker compose -f infra/compose.yaml stop",
"services:down": "docker compose -f infra/compose.yaml down",
"lint:check": "prettier --check .",
"lint:fix": "prettier --write .",
"lint:prettier:check": "prettier --check .",
"lint:prettier:fix": "prettier --write .",
"test": "npm run services:up && concurrently --names next,jest --hide next --kill-others --success command-jest \"next dev\" \"jest --runInBand --verbose\"",
"test:watch": "jest --watchAll --runInBand",
"migration:create": "node-pg-migrate -m infra/migrations create",
Expand Down

0 comments on commit 0d777c1

Please sign in to comment.