Skip to content

Commit

Permalink
ci: add job for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DakEnviy committed Jul 29, 2024
1 parent a48606b commit f4fc81d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
- '**'

jobs:
precommit:
name: Precommit checks
lint_and_typecheck:
name: Lint & Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -27,3 +27,19 @@ jobs:
run: npm run lint
- name: Typecheck
run: npm run typecheck

unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Install Packages
run: npm ci
- name: Run Tests
run: npm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"deps:ci": "npm ci",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"prepare": "husky install",
"prepare": "husky",
"prepublishOnly": "npm run build",
"test": "jest --passWithNoTests",
"typecheck": "tsc --noEmit"
Expand Down

0 comments on commit f4fc81d

Please sign in to comment.