build(deps): Bump gradle/gradle-build-action from 9bca466e2722baf9e77b4f929bbe0af18848791f to 87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 #3775
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'CI Build' | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
paths: | |
- '**' | |
- '!docs/**' | |
- '!.github/**' | |
- '.github/**/*ci*' | |
pull_request: | |
paths: | |
- '**' | |
- '!docs/**' | |
- '!.github/**' | |
- '.github/**/*ci*' | |
env: | |
LC_ALL: en_US.UTF-8 | |
GRADLE_OPTS: >- | |
-Dorg.gradle.parallel=true | |
MAVEN_OPTS: >- | |
-Dhttp.keepAlive=false | |
-Dmaven.wagon.http.pool=false | |
-Dmaven.wagon.http.retryHandler.count=3 | |
-Daether.connector.http.retryHandler.count=5 | |
-Daether.connector.http.reuseConnections=false | |
-Daether.connector.http.connectionMaxTtl=25 | |
-Daether.connector.connectTimeout=120000 | |
BNDTOOLS_CORE_TEST_NOJUNITOSGI: true # This test is very flaky on CI | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
jobs: | |
build: | |
strategy: | |
fail-fast: ${{ (github.repository != 'bndtools/bnd') || ((github.ref != 'refs/heads/master') && (github.ref != 'refs/heads/next')) || (github.event_name == 'pull_request') }} | |
matrix: | |
os: | |
- 'ubuntu-latest' | |
java: | |
- '20' | |
runner: | |
- '{0}' # 'xvfb-run --auto-servernum {0}' | |
include: | |
- os: 'ubuntu-latest' | |
java: '17' | |
runner: '{0}' # 'xvfb-run --auto-servernum {0}' | |
canonical: ${{ (github.repository == 'bndtools/bnd') && ((github.ref == 'refs/heads/master') || (github.ref == 'refs/heads/next')) && (github.event_name != 'pull_request') }} | |
fetch-depth: '0' | |
- os: 'windows-latest' | |
java: '17' | |
runner: '{0}' | |
name: Build JDK${{ matrix.java }} ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- name: Git Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
with: | |
fetch-depth: ${{ matrix.fetch-depth }} | |
- name: Set up Java 8 + ${{ matrix.java }} | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | |
with: | |
distribution: 'temurin' | |
java-version: | | |
8 | |
${{ matrix.java }} | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 | |
- name: Build | |
id: build | |
run: | | |
${{ format(matrix.runner, './.github/scripts/ci-build.sh') }} | |
- name: Configure settings.xml for Publish | |
if: ${{ matrix.canonical }} | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
server-id: bndtools.jfrog.io | |
server-username: JFROG_USERNAME | |
server-password: JFROG_PASSWORD | |
- name: Publish | |
id: publish | |
if: ${{ matrix.canonical }} | |
run: | | |
./.github/scripts/ci-publish.sh | |
env: | |
CANONICAL: ${{ matrix.canonical }} | |
JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }} | |
JFROG_PASSWORD: ${{ secrets.JFROG_PASSWORD }} | |
- name: Upload Test Reports | |
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }} | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | |
with: | |
name: Build_JDK${{ matrix.java }}_${{ matrix.os }}-test-reports | |
path: | | |
*/generated/test-reports/*/TEST-*.xml | |
maven/*/target/surefire-reports/TEST-*.xml | |
gradle-plugins/*/build/test-results/*/TEST-*.xml |