Skip to content

Commit

Permalink
CI: Adds type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 committed Mar 14, 2024
1 parent fff2466 commit 8e2a9e1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
node-version: 18.12.1
cache: npm
- name: Install
run: npm ci
run: npm ci --prefer-offline
- name: Run tests
run: npm run test:unit
20 changes: 20 additions & 0 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Run tests'

on: [push, workflow_dispatch]

jobs:
type-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
# TODO: add version to a .nvmrc or at least a variable
node-version: 18.12.1
cache: npm
- name: Install
run: npm ci --prefer-offline
- name: Type check
run: npm run type-check

0 comments on commit 8e2a9e1

Please sign in to comment.