From 21a86b4755240cbfd3f3a28ed4b21ec6ff38b95e Mon Sep 17 00:00:00 2001 From: Joscha <34318751+josxha@users.noreply.github.com> Date: Tue, 13 Feb 2024 00:36:53 +0100 Subject: [PATCH 1/3] bump versions --- .github/workflows/branch.yml | 118 +++++++++++++++++------------------ .github/workflows/daily.yml | 2 +- .github/workflows/master.yml | 28 ++++----- 3 files changed, 74 insertions(+), 74 deletions(-) diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml index 7964b2d4e..62d3dd977 100644 --- a/.github/workflows/branch.yml +++ b/.github/workflows/branch.yml @@ -16,9 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Dart Package Analyser - uses: axel-op/dart-package-analyzer@master + uses: axel-op/dart-package-analyzer@v4 id: analysis with: githubToken: ${{ secrets.GITHUB_TOKEN }} @@ -32,13 +32,13 @@ jobs: echo Package score less than available score. Improve the score! exit 1 fi - + analyse-code: name: "Analyse Code" runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Flutter Environment uses: subosito/flutter-action@v2 with: @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Flutter Environment uses: subosito/flutter-action@v2 with: @@ -63,74 +63,74 @@ jobs: - name: Run Tests with Coverage run: flutter test -r expanded --coverage - name: Run Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} build-android: - name: "Build Android Example App" - runs-on: ubuntu-latest - needs: [run-tests, analyse-code, score-package] - defaults: - run: - working-directory: ./example - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - name: Setup Java 17 Environment - uses: actions/setup-java@v3 - with: - distribution: "temurin" - java-version: "17" - - name: Setup Flutter Environment - uses: subosito/flutter-action@v2 - with: - channel: "stable" - - name: Build Android Application - run: flutter build apk - - name: Archive Artifact - uses: actions/upload-artifact@v3.1.2 - with: - name: apk-build - path: example/build/app/outputs/apk/release - if-no-files-found: error + name: "Build Android Example App" + runs-on: ubuntu-latest + needs: [ run-tests, analyse-code, score-package ] + defaults: + run: + working-directory: ./example + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Setup Java 17 Environment + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: "17" + - name: Setup Flutter Environment + uses: subosito/flutter-action@v2 + with: + channel: "stable" + - name: Build Android Application + run: flutter build apk + - name: Archive Artifact + uses: actions/upload-artifact@v4 + with: + name: apk-build + path: example/build/app/outputs/apk/release + if-no-files-found: error build-windows: - name: "Build Windows Example App" - runs-on: windows-latest - needs: [run-tests, analyse-code, score-package] - defaults: - run: - working-directory: ./example - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - name: Setup Flutter Environment - uses: subosito/flutter-action@v2 - with: - channel: "stable" - - name: Build Windows Application - run: flutter build windows - - name: Create Windows Application Installer - run: iscc "windowsApplicationInstallerSetup.iss" - working-directory: . - - name: Archive Artifact - uses: actions/upload-artifact@v3.1.2 - with: - name: exe-build - path: windowsTemp/WindowsApplication.exe - if-no-files-found: error + name: "Build Windows Example App" + runs-on: windows-latest + needs: [ run-tests, analyse-code, score-package ] + defaults: + run: + working-directory: ./example + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Setup Flutter Environment + uses: subosito/flutter-action@v2 + with: + channel: "stable" + - name: Build Windows Application + run: flutter build windows + - name: Create Windows Application Installer + run: iscc "windowsApplicationInstallerSetup.iss" + working-directory: . + - name: Archive Artifact + uses: actions/upload-artifact@v4 + with: + name: exe-build + path: windowsTemp/WindowsApplication.exe + if-no-files-found: error build-web: name: "Build Web Example App" runs-on: ubuntu-latest - needs: [run-tests, analyse-code, score-package] + needs: [ run-tests, analyse-code, score-package ] defaults: run: working-directory: ./example steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Flutter Environment uses: subosito/flutter-action@v2 with: @@ -138,7 +138,7 @@ jobs: - name: Build Web Application run: flutter build web --web-renderer canvaskit - name: Archive Artifact - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4 with: name: web-build path: example/build/web diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 958eed2cc..44d7e747c 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -10,7 +10,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v9 with: days-before-issue-stale: 21 days-before-issue-close: 7 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 0353b5481..5c2ce2497 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Flutter Environment uses: subosito/flutter-action@v2 with: @@ -23,23 +23,23 @@ jobs: - name: Run Tests with Coverage run: flutter test -r expanded --coverage - name: Run Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} build-android: name: "Build Android Example App" runs-on: ubuntu-latest - needs: [run-tests] + needs: [ run-tests ] if: github.repository == 'fleaflet/flutter_map' defaults: run: working-directory: ./example steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java 17 Environment - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "17" @@ -50,23 +50,23 @@ jobs: - name: Build Android Application run: flutter build apk - name: Archive Artifact - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4 with: name: apk-build path: example/build/app/outputs/apk/release if-no-files-found: error - + build-windows: name: "Build Windows Example App" runs-on: windows-latest - needs: [run-tests] + needs: [ run-tests ] if: github.repository == 'fleaflet/flutter_map' defaults: run: working-directory: ./example steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Flutter Environment uses: subosito/flutter-action@v2 with: @@ -77,7 +77,7 @@ jobs: run: iscc "windowsApplicationInstallerSetup.iss" working-directory: . - name: Archive Artifact - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4 with: name: exe-build path: windowsTemp/WindowsApplication.exe @@ -86,14 +86,14 @@ jobs: build-web: name: "Build & Deploy Web Example App" runs-on: ubuntu-latest - needs: [run-tests] + needs: [ run-tests ] if: github.repository == 'fleaflet/flutter_map' defaults: run: working-directory: ./example steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Flutter Environment uses: subosito/flutter-action@v2 with: @@ -101,13 +101,13 @@ jobs: - name: Build Web Application run: flutter build web --web-renderer canvaskit - name: Archive Artifact - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4 with: name: web-build path: example/build/web if-no-files-found: error - name: Publish Live Web App - uses: FirebaseExtended/action-hosting-deploy@main + uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: "${{ secrets.GITHUB_TOKEN }}" firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FLEAFLET }}" From 1ce8802dab9e7a54070ce04c6f81bc61efa03e89 Mon Sep 17 00:00:00 2001 From: Joscha <34318751+josxha@users.noreply.github.com> Date: Tue, 13 Feb 2024 00:37:06 +0100 Subject: [PATCH 2/3] add workflow actions to dependabot --- .github/dependabot.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 06abe053f..c4baacd3e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,4 +14,8 @@ updates: - dependency-name: "*" update-types: - "version-update:semver-minor" - - "version-update:semver-patch" \ No newline at end of file + - "version-update:semver-patch" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" \ No newline at end of file From 6879dc96f79e0fbe1748f5f9aa46722642764440 Mon Sep 17 00:00:00 2001 From: Joscha <34318751+josxha@users.noreply.github.com> Date: Tue, 13 Feb 2024 00:40:22 +0100 Subject: [PATCH 3/3] fix axel-op/dart-package-analyzer --- .github/workflows/branch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml index 62d3dd977..ee1dadd38 100644 --- a/.github/workflows/branch.yml +++ b/.github/workflows/branch.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - name: Run Dart Package Analyser - uses: axel-op/dart-package-analyzer@v4 + uses: axel-op/dart-package-analyzer@v3 id: analysis with: githubToken: ${{ secrets.GITHUB_TOKEN }}