Prepare for Snapshots release 1.3.0 (#314) #611
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: gradle plugin checks | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- gradle/** | |
- gradle-plugin/** | |
pull_request: | |
branches: [ main ] | |
paths: | |
- gradle/** | |
- gradle-plugin/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDKs | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: Run build | |
run: ./gradlew :gradle-plugin:build | |
unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDKs | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: Run unit tests | |
run: ./gradlew :gradle-plugin:plugin:test | |
functional_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDKs | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: | | |
11 | |
17 | |
- name: Run functional tests | |
run: ./gradlew :gradle-plugin:plugin:functionalTest --stacktrace | |
- name: Archive test reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Functional test reports | |
path: '**/build/reports/tests/functionalTest' | |