-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Gradle's 'assemble' check to catch the distribution generation is…
…sues (#8924) (#9154) Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit 63367a7)
- Loading branch information
Showing
2 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
name: Gradle Precommit | ||
name: Gradle Precommit and Asssemble | ||
on: [pull_request] | ||
|
||
jobs: | ||
precommit: | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: adopt | ||
- name: Run Gradle | ||
distribution: temurin | ||
cache: gradle | ||
- name: Run Gradle (precommit) | ||
run: | | ||
./gradlew precommit --parallel | ||
./gradlew javadoc precommit --parallel | ||
- name: Setup docker (missing on MacOS) | ||
if: runner.os == 'macos' | ||
run: | | ||
brew install docker | ||
colima start | ||
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock | ||
- name: Run Gradle (assemble) | ||
run: | | ||
./gradlew assemble --parallel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters