Skip to content

Improve layout of CLI distribution helidon-cli.zip (#947) #320

Improve layout of CLI distribution helidon-cli.zip (#947)

Improve layout of CLI distribution helidon-cli.zip (#947) #320

Workflow file for this run

name: "Validate PR"
on: [pull_request, push, workflow_dispatch]
env:
JAVA_VERSION: '17'
JAVA_DISTRO: 'temurin'
HELIDON_PIPELINES: 'true'
MAVEN_HTTP_ARGS: '-Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.retryHandler.count=3'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
copyright:
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3.6.0
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Copyright
run: etc/scripts/copyright.sh
checkstyle:
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3.6.0
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Checkstyle
run: etc/scripts/checkstyle.sh
spotbugs:
timeout-minutes: 30
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3.6.0
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Spotbugs
run: etc/scripts/spotbugs.sh
build:
timeout-minutes: 60
strategy:
matrix:
os: [ ubuntu-20.04, windows-latest ]
include:
- os: ubuntu-20.04
build_script: etc/scripts/github-build.sh
- os: windows-latest
build_script: etc/scripts/build.bat
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3.6.0
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Maven build
run: ${{ matrix.build_script }}
- name: Archive test results
uses: actions/upload-artifact@v3.1.2
#https://github.com/actions/upload-artifact/issues/240
if: ${{ matrix.os != 'windows-latest' && always() }}
with:
name: test-results
path: |
**/target/surefire-reports/*.txt
**/target/it/**/*.log
- name: Archive VSCode extension
uses: actions/upload-artifact@v3.1.2
with:
name: helidon-vscode
path: |
ide-support/vscode-extension/target/vscode-helidon.vsix
shellcheck:
name: shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
run: etc/scripts/shellcheck.sh