ISSUE-137: Redefine plugin artifact to work with gradle plugin DSL #309
Workflow file for this run
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
name: Build Gradle Plugin | |
on: [pull_request] | |
jobs: | |
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum | |
gradleValidation: | |
name: Gradle Wrapper | |
runs-on: ubuntu-latest | |
steps: | |
# Check out current repository | |
- name: Fetch Sources | |
uses: actions/checkout@v2 | |
# Validate wrapper | |
- name: Gradle Wrapper Validation | |
uses: gradle/wrapper-validation-action@v1 | |
test: | |
name: Test Gradle Plugin | |
needs: gradleValidation | |
runs-on: ubuntu-latest | |
steps: | |
# Check out current repository | |
- name: Fetch Sources | |
uses: actions/checkout@v2 | |
# Setup Java 11 environment for the next steps | |
- name: Setup Java | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
# Cache Gradle dependencies | |
- name: Setup Cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Validate build | |
run: ./gradlew Plugin:assemble Plugin:assembleLocal | |
# Run ktlint | |
- name: Run KtLint | |
run: ./gradlew Plugin:ktlint | |
# Run test Gradle task | |
- name: Run JVM Tests | |
run: ./gradlew Plugin:test |