Add span report to local testing task (#65) #131
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 | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 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 | |
- name: Archive test reports | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: Functional test reports | |
path: '**/build/reports/tests/functionalTest' | |