Skip to content

Commit

Permalink
chore: use workflow cache (#1882)
Browse files Browse the repository at this point in the history
use cache in workflows

Co-authored-by: Luka S <[email protected]>
  • Loading branch information
josxha and JaffaKetchup authored May 15, 2024
1 parent f68190c commit 4eaa48f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Get All Dependencies
run: flutter pub get
- name: Check Formatting
Expand All @@ -60,6 +61,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Run Tests with Coverage
run: flutter test -r expanded --coverage
- name: Run Codecov
Expand All @@ -82,10 +84,12 @@ jobs:
with:
distribution: "temurin"
java-version: "17"
cache: 'gradle'
- name: Setup Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Build Android Application
run: flutter build apk
- name: Archive Artifact
Expand All @@ -109,6 +113,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Build Windows Application
run: flutter build windows
- name: Create Windows Application Installer
Expand All @@ -135,6 +140,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Build Web Application
run: flutter build web --web-renderer canvaskit
- name: Archive Artifact
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Run Tests with Coverage
run: flutter test -r expanded --coverage
- name: Run Codecov
Expand All @@ -43,10 +44,12 @@ jobs:
with:
distribution: "temurin"
java-version: "17"
cache: 'gradle'
- name: Setup Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Build Android Application
run: flutter build apk
- name: Archive Artifact
Expand All @@ -71,6 +74,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Build Windows Application
run: flutter build windows
- name: Create Windows Application Installer
Expand Down Expand Up @@ -98,6 +102,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Build Web Application
run: flutter build web --web-renderer canvaskit
- name: Archive Artifact
Expand Down

0 comments on commit 4eaa48f

Please sign in to comment.