Fix empty javadoc (#56) #105
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: 'Test Plugin' | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
localPluginTest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: gradle-caches-v0-${{ hashFiles('build.gradle.kts', 'settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} | |
- name: Run tests | |
run: ./gradlew test --tests 'com.ioki.lokalise.gradle.plugin.unit*' | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: success() || failure() | |
with: | |
check_name: 'Unit Test Reports' | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
publishingConsumingPluginTest: | |
runs-on: ubuntu-latest | |
env: | |
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: gradle-caches-v0-${{ hashFiles('build.gradle.kts', 'settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} | |
- name: Publish Plugin to mavenLocal | |
run: ./gradlew publishToMavenLocal | |
- name: Run publishing/consuming tests | |
run: ./gradlew test --tests 'com.ioki.lokalise.gradle.plugin.instrumentation*' | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: success() || failure() | |
with: | |
check_name: 'Publishing Test Reports' | |
report_paths: '**/build/test-results/test/TEST-*.xml' |