2020-11-12 20:12:07 +01:00
|
|
|
name: troubleshooting
|
|
|
|
|
2020-11-13 11:37:05 +01:00
|
|
|
on: workflow_dispatch
|
2020-11-12 20:12:07 +01:00
|
|
|
|
2022-04-29 01:00:46 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-11-12 20:12:07 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
continue-on-error: false
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
#os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
|
|
os: [ ubuntu-latest ]
|
|
|
|
|
|
|
|
steps:
|
2023-09-11 03:41:17 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-01-22 03:44:39 +00:00
|
|
|
- uses: actions/cache@v4
|
2020-11-12 20:12:07 +01:00
|
|
|
with:
|
|
|
|
path: |
|
2021-05-07 16:08:30 +02:00
|
|
|
~/.m2/repository
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.cache
|
|
|
|
~/work/pmd/target/repositories
|
|
|
|
vendor/bundle
|
2022-03-18 17:04:02 +01:00
|
|
|
key: v3-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
|
2020-11-12 20:12:07 +01:00
|
|
|
restore-keys: |
|
2022-03-18 17:04:02 +01:00
|
|
|
v3-${{ runner.os }}-
|
2024-02-15 20:28:34 +01:00
|
|
|
- name: Set up Ruby 3.3
|
2021-05-28 16:59:31 +02:00
|
|
|
uses: ruby/setup-ruby@v1
|
2020-11-12 20:12:07 +01:00
|
|
|
with:
|
2024-02-15 20:28:34 +01:00
|
|
|
ruby-version: 3.3
|
2021-04-15 16:20:22 +02:00
|
|
|
- name: Setup Environment
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
|
2023-06-24 16:39:27 +02:00
|
|
|
echo "MAVEN_OPTS=-Daether.connector.http.connectionMaxTtl=180 -DstagingProgressTimeoutMinutes=30" >> $GITHUB_ENV
|
2024-09-26 17:01:00 +02:00
|
|
|
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/27/scripts" >> $GITHUB_ENV
|
2021-04-15 16:20:22 +02:00
|
|
|
- name: Check Environment
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
f=check-environment.sh; \
|
|
|
|
mkdir -p .ci && \
|
|
|
|
( [ -e .ci/$f ] || curl -sSL "${PMD_CI_SCRIPTS_URL}/$f" > ".ci/$f" ) && \
|
|
|
|
chmod 755 .ci/$f && \
|
|
|
|
.ci/$f
|
|
|
|
- name: Build
|
2020-11-13 19:43:55 +01:00
|
|
|
run: |
|
2021-04-15 16:20:22 +02:00
|
|
|
f=openjdk.bash; \
|
|
|
|
mkdir -p .ci/inc && \
|
|
|
|
( [ -e .ci/inc/$f ] || curl -sSL "${PMD_CI_SCRIPTS_URL}/inc/$f" > ".ci/inc/$f" ) && \
|
|
|
|
source .ci/inc/$f ; \
|
2021-11-25 10:08:30 +01:00
|
|
|
pmd_ci_openjdk_install_adoptium 11 ; \
|
2021-04-15 16:20:22 +02:00
|
|
|
pmd_ci_openjdk_setdefault 11
|
2020-11-12 20:12:07 +01:00
|
|
|
shell: bash
|
|
|
|
- name: Setup tmate session
|
|
|
|
uses: mxschmitt/action-tmate@v3
|