Skip to content

Commit

Permalink
chore(deps): update codecov/codecov-action to v4 (#146)
Browse files Browse the repository at this point in the history
* chore(deps): update codecov/codecov-action to v4

* chore(ci): pass all secrets vie ´secrets: inherit´ directive

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Valentin REVERSAT <[email protected]>
  • Loading branch information
renovate[bot] and vareversat committed Apr 21, 2024
1 parent bef6451 commit 62314ca
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 48 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@ jobs:
uses: ./.github/workflows/flutter.analyze-test.action.yaml
with:
flutter_version: '3.19.3'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
secrets: inherit
flutter-build:
needs: [flutter-test-analyze]
uses: ./.github/workflows/flutter.build.action.yaml
with:
flutter_version: '3.19.3'
android_output: 'apk'
env: 'dev'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
sentry_dsn: ${{ secrets.SENTRY_DSN }}
secrets: inherit
10 changes: 3 additions & 7 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
uses: ./.github/workflows/flutter.analyze-test.action.yaml
with:
flutter_version: '3.19.3'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
secrets: inherit
page:
uses: ./.github/workflows/pages.deploy.yaml
flutter-build:
Expand All @@ -21,13 +20,10 @@ jobs:
flutter_version: '3.19.3'
android_output: 'aab'
env: 'dev'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
sentry_dsn: ${{ secrets.SENTRY_DSN }}
secrets: inherit
fastlane-dry-run:
needs: [ flutter-build ]
uses: ./.github/workflows/fastlane.action.yaml
with:
lane: 'dry_run'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
secrets: inherit
6 changes: 1 addition & 5 deletions .github/workflows/fastlane.action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
description: 'Lane version (alpha, beta, or production)'
required: true
type: string
secrets:
passphrase:
description: 'The passphrase to decrypt the configuration'
required: true

jobs:
play_store:
Expand All @@ -24,7 +20,7 @@ jobs:
- name: 'Decrypt secret configuration'
run: ./.github/scripts/decrypt_secret.sh
env:
PASSPHRASE: ${{ secrets.passphrase }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: 'Check secret configuration'
run: ./.github/scripts/check_secrets_decryption.sh
- name: 'Download Artifact'
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/flutter.analyze-test.action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
description: 'The Flutter used (ex: 2.5.1)'
required: true
type: string
secrets:
passphrase:
description: 'The passphrase to decrypt the configuration'
required: true


jobs:
Expand Down Expand Up @@ -47,7 +43,7 @@ jobs:
- name: 'Decrypt secret configuration'
run: ./.github/scripts/decrypt_secret.sh
env:
PASSPHRASE: ${{ secrets.passphrase }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: 'Check secret configuration'
run: ./.github/scripts/check_secrets_decryption.sh
- name: 'Setup flutter action'
Expand All @@ -57,7 +53,7 @@ jobs:
- name: 'Flutter test (with coverage)'
run: flutter test -r github --coverage --test-randomize-ordering-seed random
- name: 'Upload coverage report'
uses: codecov/codecov-action@v3.1.6
uses: codecov/codecov-action@v4.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/
15 changes: 4 additions & 11 deletions .github/workflows/flutter.build.action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ on:
description: 'Environment in which the application will be build'
required: true
type: string
secrets:
passphrase:
description: 'The passphrase to decrypt the configuration'
required: true
sentry_dsn:
description: 'Secret URL to send live info to sentry tenant'
required: true


jobs:
Expand All @@ -36,7 +29,7 @@ jobs:
- name: 'Decrypt secret configuration'
run: ./.github/scripts/decrypt_secret.sh
env:
PASSPHRASE: ${{ secrets.passphrase }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: 'Check secret configuration'
run: ./.github/scripts/check_secrets_decryption.sh
- name: 'Set up JAVA'
Expand Down Expand Up @@ -70,7 +63,7 @@ jobs:
run: flutter build appbundle --build-number="$BUILD_NUMBER" --dart-define=SENTRY_DSN="$SENTRY_DSN" --dart-define=ENV="$ENV"
env:
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
SENTRY_DSN: ${{ secrets.sentry_dsn }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
ENV: ${{ inputs.env }}
- name: 'Save AAB'
if: ${{ inputs.android_output == 'aab' }}
Expand All @@ -87,7 +80,7 @@ jobs:
- name: 'Decrypt secret configuration'
run: ./.github/scripts/decrypt_secret.sh
env:
PASSPHRASE: ${{ secrets.passphrase }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: 'Check secret configuration'
run: ./.github/scripts/check_secrets_decryption.sh
- name: '🥺'
Expand All @@ -101,7 +94,7 @@ jobs:
- name: 'Decrypt secret configuration'
run: ./.github/scripts/decrypt_secret.sh
env:
PASSPHRASE: ${{ secrets.passphrase }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: 'Check secret configuration'
run: ./.github/scripts/check_secrets_decryption.sh
- name: '🥺'
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,18 @@ jobs:
uses: ./.github/workflows/flutter.analyze-test.action.yaml
with:
flutter_version: '3.19.3'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
secrets: inherit
flutter-build:
needs: [flutter-test-analyze]
uses: ./.github/workflows/flutter.build.action.yaml
with:
flutter_version: '3.19.3'
android_output: 'aab'
env: 'prd'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
sentry_dsn: ${{ secrets.SENTRY_DSN }}
secrets: inherit
fastlane:
needs: [flutter-build]
uses: ./.github/workflows/fastlane.action.yaml
with:
lane: 'prd'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
secrets: inherit
10 changes: 3 additions & 7 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,18 @@ jobs:
uses: ./.github/workflows/flutter.analyze-test.action.yaml
with:
flutter_version: '3.19.3'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
secrets: inherit
flutter-build:
needs: [flutter-test-analyze]
uses: ./.github/workflows/flutter.build.action.yaml
with:
flutter_version: '3.19.3'
android_output: 'aab'
env: 'beta'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
sentry_dsn: ${{ secrets.SENTRY_DSN }}
secrets: inherit
fastlane:
needs: [flutter-build]
uses: ./.github/workflows/fastlane.action.yaml
with:
lane: 'beta'
secrets:
passphrase: ${{ secrets.PASSPHRASE }}
secrets: inherit

0 comments on commit 62314ca

Please sign in to comment.