@@ -19,39 +19,29 @@ jobs:
1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Cancel Previous Runs
22- uses : styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # pin@0.11.0
22+ uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # pin@0.12.1
2323 with :
2424 access_token : ${{ github.token }}
2525
2626 analyze :
27- name : Format, fix & analyze Code
2827 if : ${{ !startsWith(github.ref, 'refs/heads/release/') }}
2928 runs-on : ubuntu-latest
3029 timeout-minutes : 20
3130 defaults :
3231 run :
3332 working-directory : ${{ inputs.package }}
3433 steps :
35- - uses : actions/checkout@v3
36- - uses : dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
34+ - uses : actions/checkout@v4
35+ - uses : dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
3736 if : ${{ inputs.sdk == 'dart' }}
38- - uses : subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # pin@v2.10 .0
37+ - uses : subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # pin@v2.12 .0
3938 if : ${{ inputs.sdk == 'flutter' }}
4039
4140 - run : ${{ inputs.sdk }} pub get
42-
43- - run : dart format .
44-
45- - run : dart fix --apply
46-
47- # actions/checkout fetches only a single commit in a detached HEAD state. Therefore
48- # we need to pass the current branch, otherwise we can't commit the changes.
49- # GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
50- - run : ../scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
51- if : env.GITHUB_HEAD_REF != null
52-
41+ - run : dart format --set-exit-if-changed ./
42+
5343 - name : dart analyze
54- uses : invertase/github-action-dart-analyzer@cdd8652b05bf7ed08ffce30f425436780f869f13 # pin@v1
44+ uses : invertase/github-action-dart-analyzer@1cda5922c6369263b1c7e2fbe281f69704f4d63e # pin@v2.0.0
5545 with :
5646 annotate : true
5747 fatal-infos : true
6959 runs-on : ubuntu-latest
7060 timeout-minutes : 20
7161 steps :
72- - uses : actions/checkout@v3
62+ - uses : actions/checkout@v4
63+ - name : Apply dependency override
64+ if : ${{ inputs.package == 'flutter' }}
65+ working-directory : ${{ inputs.package }}
66+ run : |
67+ sed -i.bak 's|sentry:.*|sentry:\n path: /github/workspace/dart|g' pubspec.yaml
7368 - uses : axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 # pin@v3
7469 id : analysis
7570 with :
0 commit comments