@@ -51,36 +51,33 @@ jobs:
51
51
52
52
- run : dart doc --dry-run
53
53
54
- # Currently Disabled because of git error `detected dubious ownership in repository.
55
- # TODO: check if this is still an issue when git version in github runners is updated
56
- #
57
- # package-analysis:
58
- # # `axel-op/dart-package-analyzer` is using `flutter pub upgrade` instead of `get`,
59
- # # which ignores pubspec.yaml `dependency_overrides`. Because of that, all `release/*` branches are failing,
60
- # # because the package cannot find the "about to be released" version of our sentry-dart package that it depends on.
61
- # if: ${{ !startsWith(github.ref, 'refs/heads/release/') && inputs.panaThreshold > 0 }}
62
- # runs-on: ubuntu-20.04
63
- # timeout-minutes: 20
64
- # steps:
65
- # - uses: actions/checkout@v4
66
- # - name: Apply dependency override
67
- # if: ${{ inputs.package == 'flutter' }}
68
- # working-directory: ${{ inputs.package }}
69
- # run: |
70
- # sed -i.bak 's|sentry:.*|sentry:\n path: /github/workspace/dart|g' pubspec.yaml
71
- # - uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 # pin@v3
72
- # id: analysis
73
- # with:
74
- # githubToken: ${{ secrets.GITHUB_TOKEN }}
75
- # relativePath: ${{ inputs.package }}
76
- # - name: Check scores
77
- # env:
78
- # TOTAL: ${{ steps.analysis.outputs.total }}
79
- # TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
80
- # run: |
81
- # PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
82
- # if (( $PERCENTAGE < ${{ inputs.panaThreshold }} ))
83
- # then
84
- # echo Score too low!
85
- # exit 1
86
- # fi
54
+ package-analysis :
55
+ # `axel-op/dart-package-analyzer` is using `flutter pub upgrade` instead of `get`,
56
+ # which ignores pubspec.yaml `dependency_overrides`. Because of that, all `release/*` branches are failing,
57
+ # because the package cannot find the "about to be released" version of our sentry-dart package that it depends on.
58
+ if : ${{ !startsWith(github.ref, 'refs/heads/release/') && inputs.panaThreshold > 0 }}
59
+ runs-on : ubuntu-20.04
60
+ timeout-minutes : 20
61
+ steps :
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
68
+ - uses : axel-op/dart-package-analyzer@d9b13539ce28b8a2f85605379ce8670209d571e8 # pin@v3
69
+ id : analysis
70
+ with :
71
+ githubToken : ${{ secrets.GITHUB_TOKEN }}
72
+ relativePath : ${{ inputs.package }}
73
+ - name : Check scores
74
+ env :
75
+ TOTAL : ${{ steps.analysis.outputs.total }}
76
+ TOTAL_MAX : ${{ steps.analysis.outputs.total_max }}
77
+ run : |
78
+ PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
79
+ if (( $PERCENTAGE < ${{ inputs.panaThreshold }} ))
80
+ then
81
+ echo Score too low!
82
+ exit 1
83
+ fi
0 commit comments