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 d4df7ad commit 6721747
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ updates:
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

- package-ecosystem: "pub"
directory: "example"
schedule:
interval: "daily"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

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

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 @@ -37,6 +40,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
11 changes: 11 additions & 0 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 @@ -14,6 +15,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 @@ -28,6 +31,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 @@ -44,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 @@ -60,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 @@ -76,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 Down
6 changes: 4 additions & 2 deletions .github/workflows/pub_publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Publish
name: Pub publish

on:
release:
types: [published]

jobs:
publish:
name: Publish
name: Pub publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Publish
uses: k-paxian/[email protected]
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pub_publish_dry_run.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Publish dry run
name: Pub publish dry run

on:
workflow_dispatch:
push:
branches:
- main

jobs:
publish-dry-run:
name: Publish dry run
name: Pub publish dry run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Publish dry run
uses: k-paxian/[email protected]
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pub_score.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Check pub score

on:
workflow_dispatch:
pull_request:
push:
branches:
Expand All @@ -12,6 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: axel-op/dart-package-analyzer@v3
id: workflow
with:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
path: ../

dev_dependencies:
flutter_lints: ^2.0.3
flutter_lints: ^2.0.0
flutter_test:
sdk: flutter
integration_test:
Expand Down

0 comments on commit 6721747

Please sign in to comment.