mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2025-02-16 20:32:41 +01:00
* Version 1.15.1 * Require non-null Settings * Update Github Action versions * Assert if worlds are null. They should never be. * JavaDoc fixes * Use instanceof pattern * Change plugin name to Pladdon * Remove unused sonar profile. * Build against BentoBox 1.18 API * Ensure a clean startup without warnings. Note for pladdons, the plugin.yml must list BentoBox as a depend in YAML list format. Must place the release repo before the snarpshote repo in the POM. * Prevent Axolotl from dying in acid. Fixes https://github.com/BentoBoxWorld/AcidIsland/issues/116
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
- name: Set up JDK 16
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '16'
|
|
- name: Cache SonarCloud packages
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.sonar/cache
|
|
key: ${{ runner.os }}-sonar
|
|
restore-keys: ${{ runner.os }}-sonar
|
|
- name: Cache Maven packages
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.m2
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: ${{ runner.os }}-m2
|
|
- name: Build and analyze
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar |