mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
This new release is published using GitHub Packages rather than JitPack. This comes with a simpler release setup and a (hopefully) more stable package repository. A minor downside is that GitHub Packages require authenticated access, even for read access. The documentation has been updated accordingly. The new release is no longer published using a custom groupId, enabling some build simplifications. While there, some obsolete fork-related documentation and configuration is dropped. See: - https://github.com/PicnicSupermarket/error-prone/releases/tag/v2.36.0-picnic-2 - https://github.com/PicnicSupermarket/error-prone/compare/v2.36.0-picnic-1...v2.36.0-picnic-2
64 lines
2.4 KiB
YAML
64 lines
2.4 KiB
YAML
name: Build and verify
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ master ]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-24.04 ]
|
|
jdk: [ 17.0.13, 21.0.5, 23.0.1 ]
|
|
distribution: [ temurin ]
|
|
experimental: [ false ]
|
|
include:
|
|
- os: macos-15
|
|
jdk: 17.0.13
|
|
distribution: temurin
|
|
experimental: false
|
|
- os: windows-2025
|
|
jdk: 17.0.13
|
|
distribution: temurin
|
|
experimental: false
|
|
runs-on: ${{ matrix.os }}
|
|
continue-on-error: ${{ matrix.experimental }}
|
|
steps:
|
|
- name: Install Harden-Runner
|
|
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3
|
|
with:
|
|
disable-sudo: true
|
|
egress-policy: block
|
|
allowed-endpoints: >
|
|
api.adoptium.net:443
|
|
github.com:443
|
|
github-registry-files.githubusercontent.com:443
|
|
jitpack.io:443
|
|
maven.pkg.github.com:443
|
|
objects.githubusercontent.com:443
|
|
repo.maven.apache.org:443
|
|
# We run the build twice for each supported JDK: once against the
|
|
# original Error Prone release, using only Error Prone checks available
|
|
# on Maven Central, and once against the Picnic Error Prone fork,
|
|
# additionally enabling all checks defined in this project and any Error
|
|
# Prone checks available only from other artifact repositories.
|
|
- name: Check out code and set up JDK and Maven
|
|
uses: s4u/setup-maven-action@4f7fb9d9675e899ca81c6161dadbba0189a4ebb1 # v1.18.0
|
|
with:
|
|
java-version: ${{ matrix.jdk }}
|
|
java-distribution: ${{ matrix.distribution }}
|
|
maven-version: 3.9.9
|
|
- name: Display build environment details
|
|
run: mvn --version
|
|
- name: Build project against vanilla Error Prone, compile Javadoc
|
|
run: mvn -T1C install javadoc:jar
|
|
- name: Build project with self-check against Error Prone fork
|
|
run: mvn -T1C clean verify -Perror-prone-fork -Pnon-maven-central -Pself-check -s settings.xml
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Remove installed project artifacts
|
|
run: mvn dependency:purge-local-repository -DmanualInclude='${project.groupId}' -DresolutionFuzziness=groupId
|
|
|
|
# XXX: Enable Codecov once we "go public".
|