Skip to content

Commit

Permalink
chore: Workflow optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
habby1337 committed Jun 2, 2024
1 parent ed0879a commit c078277
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/composition.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# check for code lint and test
name: Composition
name: Code Quality and Testing
on:
push:
branches:
Expand All @@ -8,7 +7,7 @@ on:
branches:
- main
jobs:
lint:
lint_build_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -18,5 +17,7 @@ jobs:
with:
node-version: 20.x
cache: 'npm'
- run: npm i
- run: npm run lint
- run: npm ci
- name: Lint
run: npm run lint

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dev:host": "vite --host",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"tsc": "tsc",
"preview": "vite preview"
},
"dependencies": {
Expand Down

0 comments on commit c078277

Please sign in to comment.