forked from mitesh77/Best-Flutter-UI-Templates
-
Notifications
You must be signed in to change notification settings - Fork 91
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
3 changed files
with
36 additions
and
27 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
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: Flutter checks | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
|
@@ -11,23 +12,35 @@ jobs: | |
name: Check dependencies | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
- name: Disable analytics | ||
run: flutter config --no-analytics | ||
- name: Flutter pub get | ||
run: flutter pub get | ||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Flutter pub get | ||
commit_author: Joachim Nohl <[email protected]> | ||
commit_user_name: GitHub Actions Bot | ||
|
||
pod_install: | ||
name: Pod install | ||
runs-on: macos-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
- name: Disable analytics | ||
run: flutter config --no-analytics | ||
- name: Flutter pub get | ||
run: flutter pub get | ||
- name: Pod install | ||
run: | | ||
cd ios | ||
pod install | ||
check_formatting: | ||
name: Check formatting | ||
|
@@ -36,6 +49,8 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
- name: Disable analytics | ||
|
@@ -52,6 +67,8 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
- name: Disable analytics | ||
|
@@ -68,6 +85,8 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
- name: Disable analytics | ||
|
@@ -76,21 +95,3 @@ jobs: | |
run: flutter pub get | ||
- name: Flutter test | ||
run: flutter test | ||
|
||
pod_install: | ||
name: Pod install | ||
runs-on: macos-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
- name: Disable analytics | ||
run: flutter config --no-analytics | ||
- name: Flutter pub get | ||
run: flutter pub get | ||
- name: Pod install | ||
run: | | ||
cd ios | ||
pod install |