Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use workflow cache #1882

Merged
merged 3 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading