Skip to content

Commit

Permalink
feat: Add path filter to GitHub Actions workflow
Browse files Browse the repository at this point in the history
The path filter is added to the GitHub Actions workflow to ensure that the CI only runs when specific files are modified. This improves the efficiency of the CI process by avoiding unnecessary runs when unrelated files are changed.
  • Loading branch information
RyosukeDTomita committed Jun 17, 2024
1 parent 0c55f55 commit 29826f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ jobs:
## path filterを使って特定のファイル変更時のみCIを走らせる
- デフォルト設定だと,どのファイルが修正されてもCIが走ってしまうので必要なファイルが更新された時だけCIが起動できるようにする。
```shell
name: run-jest
on:
push:
paths:
- "src/**.tsx"
- "src/**.ts"
- "public/**.html"
```
---
## CodeQLを使ってファイルを出力
Expand Down

0 comments on commit 29826f7

Please sign in to comment.