Bump actions/upload-artifact from 4 to 5 #786
Workflow file for this run
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
| name: Build | |
| on: | |
| push: | |
| paths: | |
| - "**.gradle" | |
| - "**.properties" | |
| - "**.java" | |
| - "**.toml" | |
| - "**.xml" | |
| - ".github/workflows/*.yml" | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| fullbuild: | |
| runs-on: ubuntu-latest | |
| name: Build and Verify | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: JDK Setup | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 25 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Gradle Wrapper Validation | |
| uses: gradle/actions/wrapper-validation@v5 | |
| - name: D-BUS AT-SPI Installation | |
| run: sudo apt-get -y install at-spi2-core | |
| - name: Build | |
| run: ./gradlew build -x test -PskipSpotless | |
| - name: Test | |
| uses: coactions/[email protected] | |
| with: | |
| run: ./gradlew jacocoTestReport -PskipSpotless | |
| - name: Publish Test Results | |
| uses: dorny/test-reporter@v2 | |
| with: | |
| name: JUnit test results | |
| reporter: java-junit | |
| path: '**/test-results/**/*.xml' | |
| # TODO: Re-enable SonarCloud analysis once fully compatible with Gradle 9: https://community.sonarsource.com/t/sonar-scanner-gradle-incompatible-with-gradle-9/145563 | |
| # - name: Static Analysis | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| # if: github.repository == 'gurkenlabs/litiengine' | |
| # run: ./gradlew sonar -PskipSpotless | |
| - name: Code Style Validation | |
| run: ./gradlew spotlessCheck |