Skip to content

ISSUE-137: Redefine plugin artifact to work with gradle plugin DSL #309

ISSUE-137: Redefine plugin artifact to work with gradle plugin DSL

ISSUE-137: Redefine plugin artifact to work with gradle plugin DSL #309

Workflow file for this run

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