Skip to content

Commit

Permalink
adding format checking
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyhastings committed Oct 22, 2023
1 parent df62141 commit 9c745ff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ jobs:
- name: Install application dependencies
run: yarn install --frozen-lockfile --prefer-offline

- name: Check formatting
run: yarn format:check

- name: Run integration tests
run: yarn test
run: yarn test
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"[javascript][typescript]": {
"[javascript][typescript][markdown][json][yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
Expand Down
4 changes: 2 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.8"
version: '3.8'
services:
database:
image: mongo:7
Expand Down Expand Up @@ -42,4 +42,4 @@ services:
path: ./src
target: /url-shortener/src
- action: rebuild
path: package.json
path: package.json
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"scripts": {
"dev": "nodemon src/index.mjs",
"dev:native": "node --watch src/index.mjs",
"format": "prettier --write .",
"format:check": "prettier --list-different .",
"start": "node src/index.mjs",
"test": "DEBUG=testcontainers* node --experimental-vm-modules $(yarn bin jest) --runInBand"
},
Expand All @@ -28,4 +30,4 @@
"prettier": "^3.0.3",
"supertest": "^6.3.3"
}
}
}

0 comments on commit 9c745ff

Please sign in to comment.