Skip to content

Commit

Permalink
Merge pull request #3 from Burzmalian/gfohl/precommit
Browse files Browse the repository at this point in the history
Add precommit and github actions
  • Loading branch information
Burzmalian authored Aug 15, 2024
2 parents b424a25 + 8118437 commit 9a860f7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/basechecks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PR check workflows

on: push

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
name: Node ${{ matrix.node }} sample

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: lint check
run: npm run lint
- name: prettier check
run: npm run prettier:list
- name: type check
run: npm run tsc
- name: build
run: npm run build
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run pre-commit

0 comments on commit 9a860f7

Please sign in to comment.