Skip to content

Commit

Permalink
Add GitHub Action for typeschecking in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
trevormunoz committed Jul 30, 2024
1 parent c1085ff commit e29a6ce
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/run-typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run Typescript Checks

on:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
typescript-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Run TypeScript check
run: npm run check
5 changes: 4 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ jobs:
secrets:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}

typescript-check:
uses: ./.github/workflows/run-typescript.yml

build:
needs: test
needs: [test, typescript-check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e29a6ce

Please sign in to comment.