Skip to content

Support enumConstants extracting #151 #825

Support enumConstants extracting #151

Support enumConstants extracting #151 #825

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build and run tests
on:
push:
branches:
- '*'
- '*/*'
pull_request:
branches:
- develop
permissions:
contents: read
checks: write
pull-requests: write
jobs:
jdk11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6.1
- name: Build and run tests
run: |
gradle clean build --no-daemon --info
# - name: Upload build reports
# uses: actions/upload-artifact@v3
# with:
# name: test-results
# path: build/test-results/
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "**/build/test-results/**/*.xml"
check_name: "jdk 11 test results"
- name: Upload gradle reports
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: gradle-reports
path: '**/build/reports/'
retention-days: 1
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jdk8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
java-package: jdk+fx
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6.1
- name: Build and run tests
run: |
gradle clean build --no-daemon --info
# - name: Upload build reports
# uses: actions/upload-artifact@v3
# with:
# name: test-results
# path: build/test-results/
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "**/build/test-results/**/*.xml"
check_name: "jdk 8 test results"
jdk19:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'zulu'
java-package: jdk+fx
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6.1
- name: Build and run tests
run: |
gradle clean build --no-daemon --info
# - name: Upload build reports
# uses: actions/upload-artifact@v3
# with:
# name: test-results
# path: build/test-results/
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "**/build/test-results/**/*.xml"
check_name: "jdk 19 test results"