Skip to content

Commit 63726b4

Browse files
committed
Add validations CI/CD
1 parent d5a1056 commit 63726b4

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/validate.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Validate
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
validate:
10+
name: Validate
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
16+
- name: Setup node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version-file: ".nvmrc"
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run validations
25+
run: npm run validate

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"lint": "eslint src/**/*.ts",
3333
"test": "jest",
3434
"typecheck": "tsc",
35-
"validate": "run-p lint typecheck"
35+
"validate": "run-p lint typecheck test"
3636
},
3737
"repository": {
3838
"type": "git",

0 commit comments

Comments
 (0)