Skip to content

Commit

Permalink
Merge pull request #21 from felipemaion/lint-format-action
Browse files Browse the repository at this point in the history
Add `linting.yaml` to action workflow
  • Loading branch information
felipemaion authored Jul 8, 2024
2 parents 9b65aa1 + 217f164 commit 656e781
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 12 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:
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 .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- run: npm ci

Expand Down
3 changes: 1 addition & 2 deletions infra/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
services:
database:
container_name: "postgres-dev"
image: 'postgres:16.0-alpine3.18'
image: "postgres:16.0-alpine3.18"
env_file:
- ../.env.development
ports:
- "5432:5432"

4 changes: 2 additions & 2 deletions infra/migrations/1710383390337_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) => {};
8 changes: 4 additions & 4 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"compilerOptions": {
"baseUrl": "."
}
}
"compilerOptions": {
"baseUrl": "."
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"set-env": "npm run docker:up && npm run wait-for-postgres",
"dev": "npm run set-env && npm run migration:up && next dev",
"lint:check": "prettier --check .",
"lint:fix": "prettier --write .",
"lint:prettier:check": "prettier --check .",
"lint:prettier:fix": "prettier --write .",
"concurrent-base": "concurrently -n next,jest -s command-jest --hide next -k \"next dev\"",
"test-concurrently": "npm run concurrent-base -- \"jest --runInBand\"",
"test": "npm run set-env && npm run test-concurrently",
Expand Down

0 comments on commit 656e781

Please sign in to comment.