From 4eaa48f03c0240775aac6d932cd95128fa451087 Mon Sep 17 00:00:00 2001 From: Joscha <34318751+josxha@users.noreply.github.com> Date: Wed, 15 May 2024 14:37:47 +0200 Subject: [PATCH] chore: use workflow cache (#1882) use cache in workflows Co-authored-by: Luka S --- .github/workflows/branch.yml | 6 ++++++ .github/workflows/master.yml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml index ee1dadd38..e83e0fa98 100644 --- a/.github/workflows/branch.yml +++ b/.github/workflows/branch.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 5c2ce2497..5fad8168f 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -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 @@ -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 @@ -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 @@ -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