Skip to content

Commit

Permalink
Run a script
Browse files Browse the repository at this point in the history
Note this doesn't do anything yet.
  • Loading branch information
thewilkybarkid committed Dec 4, 2023
1 parent f75d957 commit 8ca9c9f
Show file tree
Hide file tree
Showing 7 changed files with 1,000 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,24 @@ jobs:

- name: 'Run formatter'
run: npx prettier --ignore-unknown --check '**'

typecheck:
name: 'Typecheck'
runs-on: ubuntu-22.04
timeout-minutes: 30

steps:
- name: 'Checkout code'
uses: actions/checkout@v4.1.1

- name: 'Set up Node.js'
uses: actions/setup-node@v4.0.0
with:
node-version-file: package.json
cache: ${{ !env.ACT && 'npm' || '' }}

- name: 'Install dependencies'
run: npm ci

- name: 'Run typechecker'
run: npx tsc --noEmit
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"arrowParens": "avoid",
"importOrder": ["^[./]"],
"importOrderSortSpecifiers": true,
"printWidth": 120,
"semi": false,
"singleQuote": true,
"plugins": ["prettier-plugin-sh"]
"plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-sh"]
}
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: fix format
.PHONY: fix format start typecheck

node_modules: package.json package-lock.json
npm install
Expand All @@ -9,3 +9,9 @@ fix: node_modules

format: node_modules
npx prettier --ignore-unknown --check '**'

typecheck: node_modules
npx tsc --noEmit

start: node_modules
npx tsx src
Loading

0 comments on commit 8ca9c9f

Please sign in to comment.