-
Notifications
You must be signed in to change notification settings - Fork 38
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
1 parent
2a9a7bb
commit 85d3ef0
Showing
3 changed files
with
97 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Setup FVM" | ||
description: "Install and setup FVM" | ||
|
||
inputs: | ||
flutter-version: | ||
description: 'Flutter version' | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install FVM | ||
shell: bash | ||
run: | | ||
curl -fsSL https://fvm.app/install.sh | bash | ||
fvm use ${{ inputs.flutter-version }} --force | ||
- uses: kuhnroyal/flutter-fvm-config-action@v2 | ||
id: fvm-config-action | ||
|
||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | ||
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} | ||
|
||
- name: Flutter version | ||
shell: bash | ||
run: flutter --version | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Analyze Workflow | ||
|
||
on: | ||
push: | ||
pull_request_target: | ||
branches: [main] | ||
paths-ignore: | ||
- 'scripts/**' | ||
- 'website/**' | ||
- 'assets/**' | ||
|
||
jobs: | ||
dcm: | ||
name: DCM | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout mix repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup FVM | ||
uses: ./.github/actions/fvm/ | ||
|
||
- name: Setup Melos | ||
uses: bluefireteam/melos-action@v3 | ||
|
||
- name: Run build runner | ||
shell: bash | ||
run: melos run brb | ||
|
||
- name: Install DCM | ||
if: ${{ inputs.run-dcm }} | ||
uses: CQLabs/setup-dcm@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
folders: packages/*/lib | ||
ci_key: oss | ||
email: oss | ||
fatal_style: true | ||
fatal_performance: true | ||
fatal_warnings: true | ||
|
||
- name: dart analyze | ||
run: melos run --no-select analyze | ||
shell: bash | ||
|
||
- name: Run custom_lint | ||
run: melos run custom_lint_analyze | ||
shell: bash | ||
|