Skip to content

Commit

Permalink
fix: verifyPlugin on java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
JakkuSakura committed Jul 28, 2021
1 parent d0d6146 commit 7b84167
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,47 @@ jobs:
- name: Run Linters and Test
run: ./gradlew check


# Run verifyPlugin
verify_plugin:
name: verify_plugin
needs: gradleValidation
runs-on: ubuntu-latest
steps:

# Setup Java 1.8 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 11

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2.3.4
with:
submodules: 'true'

- name: Change IDE source
run: sed 's/#\(platformVersion\)/\1/;s/platformLocalPath/#\0/' -i gradle.properties

- name: Build astor
run: cd astor && mvn install -DskipTests=true --settings mvn-settings.xml

# Cache Gradle dependencies
- name: Setup Gradle Dependencies Cache
uses: actions/cache@v2.1.6
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}

# Cache Gradle Wrapper
- name: Setup Gradle Wrapper Cache
uses: actions/cache@v2.1.6
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

# Run verifyPlugin Gradle task
- name: Verify Plugin
run: ./gradlew verifyPlugin
Expand Down

0 comments on commit 7b84167

Please sign in to comment.