Skip to content

Commit

Permalink
chore(meta): start all PR workflow jobs simultaneously, use java 21 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha authored May 16, 2024
1 parent 4eaa48f commit d959a87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: "Branch & Fork CI/CD"
on:
push:
branches:
- '!master'
branches: [ '!master' ]
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -72,18 +71,17 @@ jobs:
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@v4
- name: Setup Java 17 Environment
- name: Setup Java 21 Environment
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
java-version: "21"
cache: 'gradle'
- name: Setup Flutter Environment
uses: subosito/flutter-action@v2
Expand All @@ -102,7 +100,6 @@ jobs:
build-windows:
name: "Build Windows Example App"
runs-on: windows-latest
needs: [ run-tests, analyse-code, score-package ]
defaults:
run:
working-directory: ./example
Expand All @@ -129,7 +126,6 @@ jobs:
build-web:
name: "Build Web Example App"
runs-on: ubuntu-latest
needs: [ run-tests, analyse-code, score-package ]
defaults:
run:
working-directory: ./example
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Java 17 Environment
- name: Setup Java 21 Environment
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
java-version: "21"
cache: 'gradle'
- name: Setup Flutter Environment
uses: subosito/flutter-action@v2
Expand Down

0 comments on commit d959a87

Please sign in to comment.