Skip to content

Commit

Permalink
Add validations CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasgarcep committed Feb 16, 2024
1 parent d5a1056 commit 63726b4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Validate

on:
push:
branches:
- main

jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Install dependencies
run: npm install

- name: Run validations
run: npm run validate
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint": "eslint src/**/*.ts",
"test": "jest",
"typecheck": "tsc",
"validate": "run-p lint typecheck"
"validate": "run-p lint typecheck test"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 63726b4

Please sign in to comment.