Skip to content

Bump org.apache.maven.plugins:maven-install-plugin from 3.1.3 to 3.1.… #60

Bump org.apache.maven.plugins:maven-install-plugin from 3.1.3 to 3.1.…

Bump org.apache.maven.plugins:maven-install-plugin from 3.1.3 to 3.1.… #60

Workflow file for this run

name: CI Lint
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
jobs:
lint:
name: Checkstyle
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
env:
PACKAGES_USER: ${{ secrets.HAUNTEDMC_PACKAGES_USERNAME }}
PACKAGES_TOKEN: ${{ secrets.HAUNTEDMC_PACKAGES_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Validate package token
run: |
if [ -z "$PACKAGES_USER" ]; then
echo "Missing secret HAUNTEDMC_PACKAGES_USERNAME." >&2
exit 1
fi
if [ -z "$PACKAGES_TOKEN" ]; then
echo "Missing secret HAUNTEDMC_PACKAGES_TOKEN (requires read:packages)." >&2
exit 1
fi
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "21"
cache: maven
server-id: github
server-username: PACKAGES_USER
server-password: PACKAGES_TOKEN
- name: Run Checkstyle
run: mvn -B -ntp -DskipTests checkstyle:check