-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): run
dart format lib
&& flutter analyze lib
- Loading branch information
1 parent
c57d08e
commit 715261b
Showing
3 changed files
with
63 additions
and
67 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 |
---|---|---|
@@ -1,63 +1,63 @@ | ||
name: Flutter - Analyze & Test | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
flutter_version: | ||
description: 'The Flutter used (ex: 2.5.1)' | ||
required: true | ||
type: string | ||
secrets: | ||
passphrase: | ||
description: 'The passphrase to decrypt the configuration' | ||
required: true | ||
|
||
|
||
jobs: | ||
analyze: | ||
name: 'Analyze' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Setup flutter action' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Flutter analyze' | ||
run: flutter analyze | ||
format: | ||
name: 'Format' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Setup flutter action' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Flutter format' | ||
run: flutter format lib --set-exit-if-changed | ||
test: | ||
name: 'Test' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Decrypt secret configuration' | ||
run: ./.github/scripts/decrypt_secret.sh | ||
env: | ||
PASSPHRASE: ${{ secrets.passphrase }} | ||
- name: 'Check secret configuration' | ||
run: ./.github/scripts/check_secrets_decryption.sh | ||
- name: 'Setup flutter action' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Flutter test (with coverage)' | ||
run: flutter test --coverage --test-randomize-ordering-seed random | ||
- name: 'Upload coverage report' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: Flutter - Analyze & Test | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
flutter_version: | ||
description: 'The Flutter used (ex: 2.5.1)' | ||
required: true | ||
type: string | ||
secrets: | ||
passphrase: | ||
description: 'The passphrase to decrypt the configuration' | ||
required: true | ||
|
||
|
||
jobs: | ||
analyze: | ||
name: 'Analyze' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Setup flutter action' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Flutter analyze' | ||
run: flutter analyze | ||
format: | ||
name: 'Format' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Setup flutter action' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Flutter format' | ||
run: dart format lib --set-exit-if-changed | ||
test: | ||
name: 'Test' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Decrypt secret configuration' | ||
run: ./.github/scripts/decrypt_secret.sh | ||
env: | ||
PASSPHRASE: ${{ secrets.passphrase }} | ||
- name: 'Check secret configuration' | ||
run: ./.github/scripts/check_secrets_decryption.sh | ||
- name: 'Setup flutter action' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Flutter test (with coverage)' | ||
run: flutter test --coverage --test-randomize-ordering-seed random | ||
- name: 'Upload coverage report' | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
directory: ./coverage/ |
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