Skip to content

Commit

Permalink
ci: lint ジョブの条件を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsutakein committed Jun 4, 2024
1 parent 865c98e commit d8ef2b3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
pull-requests: write
outputs:
gen: ${{ steps.filter.outputs.gen }}
lint: ${{ steps.filter.outputs.lint }}
markdown: ${{ steps.filter.outputs.markdown }}
src: ${{ steps.filter.outputs.src }}
runs-on: ubuntu-22.04
Expand All @@ -27,6 +28,11 @@ jobs:
- "**.dart"
- "**.yaml"
- "**/pubspec.lock"
lint:
- "**.dart"
- "**.yaml"
- "**/pubspec.lock"
- "scripts/report-custom-lint-ci.sh"
markdown:
- "**.md"
src:
Expand Down Expand Up @@ -91,9 +97,9 @@ jobs:
fail-on-error: "true"

# custom_lintが時間かかるのでcheckと並列させる
custom_lint_check:
lint:
needs: pre-check
if: ${{ needs.pre-check.outputs.src == 'true' }}
if: ${{ needs.pre-check.outputs.lint == 'true' }}
runs-on: ubuntu-22.04
timeout-minutes: 20

Expand Down Expand Up @@ -129,8 +135,8 @@ jobs:
runs-on: ubuntu-22.04
needs:
- check
- custom_lint_check
- diff-gen
- lint
- markdown
permissions: { }
if: failure()
Expand Down

0 comments on commit d8ef2b3

Please sign in to comment.