Skip to content

Bump org.bstats:bstats-bukkit from 1.8 to 3.1.0 #315

Bump org.bstats:bstats-bukkit from 1.8 to 3.1.0

Bump org.bstats:bstats-bukkit from 1.8 to 3.1.0 #315

Workflow file for this run

name: Build
on:
push:
branches: [ master, next ]
paths-ignore:
- '*.md'
- '.github/**/*.yml'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17' ]
name: Build with Java ${{ matrix.java }}
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Restore Gradle cache
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: ${{ matrix.java }}
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build --stacktrace
quality:
runs-on: ubuntu-latest
name: Check code quality
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Restore Gradle cache
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Restore SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build jacocoTestReport sonar --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}