Skip to content

Commit

Permalink
prettier on pre-commit and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gilgardosh committed Jan 10, 2023
1 parent b2e8646 commit f016d2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}

prettier:
uses: the-guild-org/shared-config/.github/workflows/prettier.yml@main
with:
script: yarn ci:prettier
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}

test:
name: ${{matrix.os}} / node ${{matrix.node-version}}
timeout-minutes: 60
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn prettier
yarn lint-staged

0 comments on commit f016d2a

Please sign in to comment.