Merge 5.1.4 to the beta branch #1635
Workflow file for this run
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: | |
branches: | |
- master | |
- beta | |
pull_request: | |
branches: | |
- master | |
- beta | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
gradle: ['7.6.2', '8.1', '8.2'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version-file: .java-version | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
if: matrix.gradle == '7.6.2' | |
- name: Gradle Wrapper Validation | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build -Dsnom.test.functional.gradle=${{ matrix.gradle }} --scan | |
- run: | | |
echo Verifying the java version used in class files... | |
cd build/classes/kotlin/main | |
javap -v com.github.spotbugs.snom.SpotBugsPlugin | grep -q 'major version: 55' | |
- name: Run Semantic Release | |
run: | | |
echo "gradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}" > ~/.gradle/gradle.properties | |
echo "gradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}" >> ~/.gradle/gradle.properties | |
rm -rf build/libs/*.jar | |
npm ci | |
npx semantic-release | |
if: matrix.gradle == '7.6.2' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
- name: Run SonarQube Scanner | |
run: | | |
if [ "$SONAR_LOGIN" != "" ]; then | |
./gradlew sonarqube -Dsonar.login=$SONAR_LOGIN --no-daemon | |
fi | |
if: matrix.gradle == '7.6.2' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }} | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: reports (Gradle ${{ matrix.gradle }}) | |
path: build/reports |