pmd/.github/workflows/troubleshooting.yml

59 lines
1.7 KiB
YAML
Raw Normal View History

2020-11-12 20:12:07 +01:00
name: troubleshooting
on: workflow_dispatch
2020-11-12 20:12:07 +01: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:
- uses: actions/checkout@v4
- 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
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
- name: Setup Environment
shell: bash
run: |
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
echo "MAVEN_OPTS=-Daether.connector.http.connectionMaxTtl=180 -DstagingProgressTimeoutMinutes=30" >> $GITHUB_ENV
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/27/scripts" >> $GITHUB_ENV
- 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
run: |
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 ; \
pmd_ci_openjdk_install_adoptium 11 ; \
pmd_ci_openjdk_setdefault 11
2020-11-12 20:12:07 +01:00
shell: bash
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3