Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI高速化 #221

Merged
merged 9 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading