Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Jul 31, 2024
1 parent dd6c492 commit eae5441
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 48 deletions.
99 changes: 64 additions & 35 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ name: build
# events but only for the develop branch
on:
push:
branches: [ develop, master ]
branches: [develop, main]
paths:
- 'flutter_cache_manager/**'
- "flutter_cache_manager/**"
- ".github/workflows/**"
pull_request:
branches: [ develop ]
branches: [develop]
paths:
- 'flutter_cache_manager/**'
- "flutter_cache_manager/**"
- ".github/workflows/**"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -26,12 +28,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Download all Flutter packages
- name: Download dependencies
Expand All @@ -55,12 +60,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Download all Flutter packages
- name: Download dependencies
Expand All @@ -85,18 +93,21 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Ensure correct JAVA version is installed.
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
distribution: "zulu"
java-version: "17"

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Download all Flutter packages
- name: Download dependencies
Expand All @@ -121,12 +132,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Download all Flutter packages
- name: Download dependencies
Expand All @@ -151,12 +165,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Enable platform support
- name: Enable macOS
Expand Down Expand Up @@ -186,12 +203,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Enable platform support
- name: Enable Windows
Expand Down Expand Up @@ -225,12 +245,15 @@ jobs:
- run: sudo apt-get install -y ninja-build libgtk-3-dev libblkid-dev

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Enable platform support
- name: Enable Linux
Expand Down Expand Up @@ -265,12 +288,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Download all Flutter packages
- name: Download dependencies
Expand All @@ -293,12 +319,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: "stable"
architecture: x64
cache: true

# Download all Flutter packages
- name: Download dependencies
Expand All @@ -311,7 +340,7 @@ jobs:
working-directory: ${{env.source-directory}}

# Upload code coverage information
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
files: ${{env.source-directory}}/coverage/lcov.info
name: CacheManager
Expand Down
8 changes: 4 additions & 4 deletions flutter_cache_manager/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ environment:

dependencies:
clock: ^1.1.1
collection: ^1.16.0
collection: ^1.18.0
file: ^7.0.0
flutter:
sdk: flutter
http: ^1.1.0
http: ^1.2.0
path: ^1.9.0
path_provider: ^2.1.2
rxdart: '>=0.27.7 <0.29.0'
sqflite: ^2.3.0
uuid: ^4.4.0

dev_dependencies:
build_runner: ^2.4.0
flutter_lints: ^3.0.2
build_runner: ^2.4.11
flutter_lints: ^4.0.0
flutter_test:
sdk: flutter
mockito: ^5.4.4
Loading

0 comments on commit eae5441

Please sign in to comment.