Skip to content

Commit

Permalink
Merge pull request #221 from yumemi-inc/feature/fast_ci
Browse files Browse the repository at this point in the history
CI高速化
  • Loading branch information
K9i-0 committed Jun 4, 2024
2 parents b917e5a + 514494b commit f7f3a68
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/actions/setup-application-runtime/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ runs:
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
cache: true

- name: Setup melos
run: |
Expand Down
35 changes: 25 additions & 10 deletions .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ jobs:
with:
fatal-infos: true

- name: Report custom_lint result
run: |
echo "::add-matcher::.github/problem_matchers/custom_lint.json"
melos run report_custom_lint:ci --no-select || result=$?
echo "::remove-matcher owner=custom_lint::"
if [ -n "$result" ]; then
exit 1
fi
- name: Check format
run: melos format --output none --set-exit-if-changed

Expand All @@ -87,3 +77,28 @@ jobs:
path: "(apps|packages)/**/test_report.log"
reporter: "flutter-json"
fail-on-error: "true"

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

steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Application Runtime
uses: ./.github/actions/setup-application-runtime

- name: Report custom_lint result
run: |
echo "::add-matcher::.github/problem_matchers/custom_lint.json"
melos run report_custom_lint:ci --no-select || result=$?
echo "::remove-matcher owner=custom_lint::"
if [ -n "$result" ]; then
exit 1
fi

0 comments on commit f7f3a68

Please sign in to comment.