Skip to content

Commit

Permalink
chore: setup java and gradle in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed Dec 24, 2023
1 parent 5562ff6 commit 7366a6c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,38 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Gradle Wrapper Validation
uses: gradle/[email protected]

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true

# Set gradle environment variables
- name: Export Properties
id: properties
shell: bash
run: |
PROPERTIES="$(./gradlew properties --console=plain -q)"
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
echo "changelog<<EOF" >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
- name: Build
run: DEFAULT_NPM_TAG=latest pnpm run build

Expand Down

0 comments on commit 7366a6c

Please sign in to comment.