Skip to content

Bump dk.mada.style from 0.9.7 to 0.9.8 (#63) #118

Bump dk.mada.style from 0.9.7 to 0.9.8 (#63)

Bump dk.mada.style from 0.9.7 to 0.9.8 (#63) #118

name: Build and Test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Allows sonar to collect blame information
- name: Setup Gradle
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43
# v3.3.2
with:
validate-wrappers: true
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Run tests
run: ./gradlew check javadoc publish sonar -s -Pversion=${BUILD_LABEL//\//_}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
BUILD_LABEL: ${{ github.head_ref || github.ref_name }}