Skip to content

Commit

Permalink
Improve workflows and dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
nohli committed Sep 1, 2023
1 parent 1c3e541 commit d7d4e91
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ updates:
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

- package-ecosystem: "gradle"
directory: "android"
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/flutter_build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Flutter build

on:
workflow_dispatch:
pull_request:
push:
branches:
Expand All @@ -14,10 +15,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: '17'
- name: Install Flutter
uses: subosito/flutter-action@v2
Expand All @@ -35,6 +38,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
Expand Down
53 changes: 27 additions & 26 deletions .github/workflows/flutter_checks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Flutter checks

on:
workflow_dispatch:
pull_request:
push:
branches:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit d7d4e91

Please sign in to comment.