Skip to content

Commit

Permalink
add prettier check into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Apr 16, 2024
1 parent a377361 commit c285010
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
- name: unit tests
run: cd ./solarkraft && npm run test

lint-and-license:
housekeeping:
runs-on: ubuntu-latest
strategy:
fail-fast: true
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -43,3 +43,5 @@ jobs:
run: cd ./solarkraft && npm run lint
- name: check license
run: cd ./solarkraft && (npm run license | grep -v updated) || echo "fix with 'npm run license'"
- name: check formatting
run: cd ./solarkraft && (npx prettier --config .prettierrc --check src/**/*.ts test/**/*.ts) || echo "fix with 'npm run format'"

0 comments on commit c285010

Please sign in to comment.