45a85806b5
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
name: troubleshooting
|
|
|
|
on: workflow_dispatch
|
|
|
|
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@v3
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.m2/repository
|
|
~/.gradle/caches
|
|
~/.cache
|
|
~/work/pmd/target/repositories
|
|
vendor/bundle
|
|
key: v2-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
v2-${{ runner.os }}-
|
|
- name: Set up Ruby 2.7
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: 2.7
|
|
- name: Setup Environment
|
|
shell: bash
|
|
run: |
|
|
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
|
|
echo "MAVEN_OPTS=-Dmaven.wagon.httpconnectionManager.ttlSeconds=180 -Dmaven.wagon.http.retryHandler.count=3 -DstagingProgressTimeoutMinutes=30" >> $GITHUB_ENV
|
|
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/17/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
|
|
shell: bash
|
|
- name: Setup tmate session
|
|
uses: mxschmitt/action-tmate@v3
|