Skip to content

Commit

Permalink
Run the type checker
Browse files Browse the repository at this point in the history
Refs #13
  • Loading branch information
thewilkybarkid committed Jun 26, 2024
1 parent 020beba commit 5a3142b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,28 @@ jobs:
- name: 'Run formatter'
run: npx prettier --ignore-unknown --check '**'

typecheck:
name: 'Typecheck'
runs-on: ubuntu-22.04
timeout-minutes: 30
if: github.event_name != 'schedule'

steps:
- name: 'Checkout code'
uses: actions/[email protected]

- name: 'Set up Node.js'
uses: actions/[email protected]
with:
node-version-file: package.json
cache: ${{ !env.ACT && 'npm' || '' }}

- name: 'Install dependencies'
run: npm ci

- name: 'Run typechecker'
run: npx tsc --noEmit

push:
name: 'Push image'
runs-on: ubuntu-22.04
Expand All @@ -81,6 +103,7 @@ jobs:
needs:
- build-image
- format
- typecheck

steps:
- name: 'Set up flyctl'
Expand Down
16 changes: 15 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"@types/node": "^20.14.5",
"prettier": "^3.3.2",
"prettier-plugin-sh": "^0.14.0",
"prettier-plugin-toml": "^2.0.1"
"prettier-plugin-toml": "^2.0.1",
"typescript": "^5.5.2"
},
"engines": {
"node": ">=18"
Expand Down

0 comments on commit 5a3142b

Please sign in to comment.