Skip to content

Commit

Permalink
add depcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
znarf committed Nov 22, 2023
1 parent 4fe2ebd commit 6db3739
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
lint:
runs-on: ubuntu-latest

timeout-minutes: 15

steps:
- name: Update apt
run: sudo apt-get update || exit 0
Expand Down Expand Up @@ -58,6 +60,8 @@ jobs:
prettier:
runs-on: ubuntu-latest

timeout-minutes: 15

steps:
- name: Update apt
run: sudo apt-get update || exit 0
Expand Down Expand Up @@ -96,9 +100,27 @@ jobs:

- run: npm run prettier:check

depcheck:
runs-on: ubuntu-latest

timeout-minutes: 15

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup project
uses: ./.github/actions/setup-project
with:
CACHE_VERSION: ${{ secrets.CACHE_VERSION }}

- run: npm run depcheck

test:
runs-on: ubuntu-latest

timeout-minutes: 30

services:
redis:
image: redis
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"prettier:write": "npm run prettier -- --write",
"start": "node dist/server",
"test:server": "TZ=UTC ./scripts/run_test.sh",
"prepare": "husky install"
"prepare": "husky install",
"depcheck": "npx depcheck"
},
"devDependencies": {
"@babel/cli": "^7.23.4",
Expand Down Expand Up @@ -98,5 +99,10 @@
"cacheDirectories": [
"node_modules"
],
"depcheck": {
"ignores": [
"jest"
]
},
"heroku-run-build-script": true
}

0 comments on commit 6db3739

Please sign in to comment.