Skip to content

Commit

Permalink
Update CI workflow to use latest actions and add caching for Flutter …
Browse files Browse the repository at this point in the history
…dependencies; add Dependabot configuration for automated updates
  • Loading branch information
lucasilverentand committed Dec 12, 2024
1 parent f7f83f8 commit 66b3c7e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
# Check for updates to pub dependencies in oui package
- package-ecosystem: "pub"
directory: "/oui"
schedule:
interval: "weekly"
open-pull-requests-limit: 10

# Check for updates to pub dependencies in oui_showcase
- package-ecosystem: "pub"
directory: "/oui_showcase"
schedule:
interval: "weekly"
open-pull-requests-limit: 10

# Check for updates to GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
25 changes: 12 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v3
with:
channel: stable
version: 3.0.2

- name: Cache Flutter
uses: actions/cache@v3
with:
path: |
~/.pub-cache
${{ github.workspace }}/.flutter
key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-flutter-
- name: Install dependencies
run: flutter pub get
Expand All @@ -32,20 +41,10 @@ jobs:
run: flutter test --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true

- name: Cache Flutter
uses: actions/cache@v2
with:
path: |
~/.pub-cache
${{ github.workspace }}/.flutter
key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-flutter-

0 comments on commit 66b3c7e

Please sign in to comment.