Skip to content

Bump dk.mada.style from 1.0.3 to 1.0.4 (#121) #230

Bump dk.mada.style from 1.0.3 to 1.0.4 (#121)

Bump dk.mada.style from 1.0.3 to 1.0.4 (#121) #230

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@d156388eb19639ec20ade50009f3d199ce1e2808
# v4
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 }}