Skip to content

Webrepl updates

Webrepl updates #187

Workflow file for this run

name: Maven PR Build
# We require all commits go through PR on GitHub
on:
pull_request:
branches:
- webrepl
jobs:
build:
name: Maven PR Builder (JDK ${{ matrix.java }})
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 21 ]
steps:
- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
with:
fetch-depth: 0 # Unshallow checkout helps SonarCloud provide more info
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@860f60056505705214d223b91ed7a30f173f6142 # v3.3.0
with:
cache: maven
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Cache SonarCloud packages
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B -ntp -Psonar verify -Dsonar.branch.name="${{ github.ref }}"