Skip to content

Commit

Permalink
Add CI: typecheck, lint & format
Browse files Browse the repository at this point in the history
  • Loading branch information
altinthaqi committed Mar 25, 2024
1 parent a442e0a commit 4308c63
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-20.04
strategy:
matrix:
bun-version: [latest]
timeout-minutes: 20
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ matrix.bun-version }}

- name: Install dependencies
run: bun install

- name: Typecheck
run: bun run typecheck

- name: Lint
run: bun run lint

- name: Format check
run: bun run format:check
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "eslint app/",
"lint:fix": "eslint app --fix",
"format:check": "prettier --check app/",
"format:fix": "prettier --write app/"
"format:fix": "prettier --write app/",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@elysiajs/cors": "^1.0.2",
Expand Down

0 comments on commit 4308c63

Please sign in to comment.