Skip to content

Commit

Permalink
ci: add linting and typechecking in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 29, 2023
1 parent 6108851 commit 914aec0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: checks
on:
- push
- pull_request

jobs:
test:
uses: poppinss/.github/.github/workflows/test.yml@main

lint:
uses: poppinss/.github/.github/workflows/lint.yml@main

typecheck:
uses: poppinss/.github/.github/workflows/typecheck.yml@main
7 changes: 0 additions & 7 deletions .github/workflows/test.yml

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
},
"scripts": {
"pretest": "npm run lint",
"test": "c8 npm run vscode:test",
"test": "c8 npm run quick:test",
"clean": "del-cli build",
"typecheck": "tsc --noEmit",
"compile": "npm run lint && npm run clean && tsc",
"build": "npm run compile",
"release": "np",
Expand All @@ -25,7 +26,7 @@
"prepublishOnly": "npm run build",
"lint": "eslint . --ext=.ts",
"sync-labels": "github-label-sync --labels .github/labels.json poppinss/oauth-client",
"vscode:test": "node --loader=ts-node/esm bin/test.ts"
"quick:test": "node --loader=ts-node/esm bin/test.ts"
},
"keywords": [
"oauth",
Expand Down

0 comments on commit 914aec0

Please sign in to comment.