-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,20 +44,11 @@ jobs: | |
|
||
- run: dart fix --apply | ||
|
||
- name: swiftlint --fix | ||
uses: norio-nomura/action-swiftlint@9f4dcd7fd46b4e75d7935cf2f4df406d5cae3684 # [email protected] | ||
if: ${{ inputs.package == 'flutter' }} | ||
with: | ||
args: --strict --fix | ||
|
||
# actions/checkout fetches only a single commit in a detached HEAD state. Therefore | ||
# we need to pass the current branch, otherwise we can't commit the changes. | ||
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs. | ||
- name: commit formatted code | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
run: echo $BRANCH_NAME # ../scripts/commit-formatted-code.sh $BRANCH_NAME | ||
if: $BRANCH_NAME != null | ||
- run: ../scripts/commit-formatted-code.sh $GITHUB_HEAD_REF | ||
if: env.GITHUB_HEAD_REF != null | ||
|
||
- name: dart analyze | ||
uses: invertase/github-action-dart-analyzer@cdd8652b05bf7ed08ffce30f425436780f869f13 # pin@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,18 @@ jobs: | |
# https://github.com/CocoaPods/CocoaPods/issues/5275#issuecomment-315461879 | ||
- run: pod lib lint ios/sentry_flutter.podspec --configuration=Debug --skip-import-validation --allow-warnings | ||
|
||
swift-lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
defaults: | ||
run: | ||
working-directory: ./flutter | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: norio-nomura/action-swiftlint@9f4dcd7fd46b4e75d7935cf2f4df406d5cae3684 # [email protected] | ||
with: | ||
args: --strict | ||
|
||
ktlint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters