getJobs(): Only request specific attributes for CUPS printers. Let th… #863
This file contains hidden or 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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
# https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables | |
name: build | |
on: | |
workflow_dispatch: | |
push: | |
# branches: | |
# - master | |
# - develop | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
# Disabling shallow clone is recommended for improving relevancy of reporting | |
fetch-depth: 0 | |
# https://github.com/marketplace/actions/setup-java-jdk | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
# https://github.com/marketplace/actions/build-with-gradle | |
#- name: Setup Gradle | |
# uses: gradle/actions/setup-gradle@v4 | |
- name: Gradle wrapper build and analyse | |
run: ./gradlew --no-daemon sonar | |
# - name: Publish GitHub Packages | |
# env: | |
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
# run: ./gradlew publish | |
# - name: Analyse with Sonar | |
# run: ./gradlew test jacocoTestReport sonar | |
# run: ./gradlew jacocoTestReport sonar | |
# uses: gradle/gradle-build-action@v2 | |
# with: | |
# gradle-version: 7.6.2 | |
# arguments: jacocoTestReport sonar | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |