Skip to content

Commit

Permalink
Merge pull request #16 from LucasFKobernic/lint-format-action
Browse files Browse the repository at this point in the history
Add Workflow 'linting'
  • Loading branch information
LucasFKobernic authored Jul 15, 2024
2 parents 65fbfc1 + f0e5950 commit 4c64e5e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Linting

on: pull_request

jobs:
prettier:
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 infra/migrations/1710593780077_test-migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

exports.shorthands = undefined;

exports.up = pgm => {};
exports.up = (pgm) => {};

exports.down = pgm => {};
exports.down = (pgm) => {};
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\" ",
"test:watch": "jest --watchAll --runInBand",
"migration:create": "node-pg-migrate -m infra/migrations create",
Expand Down

0 comments on commit 4c64e5e

Please sign in to comment.