Merge pull request #346 from 1c-syntax/dependabot/gradle/org.sonarqub… #987
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: Java CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java_version: ['17', '19'] | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java_version }} | |
uses: actions/[email protected] | |
with: | |
java-version: ${{ matrix.java_version }} | |
distribution: 'adopt' | |
- name: Build with Gradle | |
run: ./gradlew check --stacktrace | |
- name: Archive test results | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: junit_report_${{ matrix.os }}_${{ matrix.java_version }} | |
path: build/reports/tests/test |