Skip to content

Commit

Permalink
Modify workflows & precommit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
SeiyaKobayashi committed Aug 21, 2024
1 parent 9d49546 commit fb3271e
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/check-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- develop
paths:
- 'packages/core/**'
- '.github/workflows/check-core.yml'

defaults:
run:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/check-root.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: static checks for core package

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
paths:
- '.github/**'
- 'docs/**'
- 'README.md'
- 'yarnrc.yml'

defaults:
run:
working-directory: ./

jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Format
run: yarn run format:dry-run .github docs README.md yarnrc.yml
1 change: 0 additions & 1 deletion .github/workflows/check-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- develop
paths:
- 'packages/v1/**'
- '.github/workflows/check-v1.yml'

defaults:
run:
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
},
"lint-staged": {
"*.{md,json,yml}": [
"yarn run format"
"yarn run format README.md yarnrc.yml"
],
".github/**/*.{md,json,yml}": [
"yarn run format"
"yarn run format .github"
],
".docs/**/*.{md,json,yml}": [
"yarn run format docs"
],
"packages/core/**/*.{ts,js}": [
"yarn workspace @jpyc/sdk-core run lint",
Expand Down

0 comments on commit fb3271e

Please sign in to comment.