Skip to content

Commit

Permalink
update CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hgschmie committed Nov 17, 2023
1 parent 8db4bb5 commit 6c94a85
Showing 1 changed file with 42 additions and 4 deletions.
46 changes: 42 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ env:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 11, 17, 21 ]
distribution: [ temurin ]

steps:
- uses: actions/checkout@v4
Expand All @@ -27,11 +31,44 @@ jobs:
distribution: temurin
cache: maven

- name: Build
- uses: actions/setup-java@v3
id: setup_test_jdk
name: Setup Test JDK
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
cache: maven

- id: set_build_jdk
name: Set the Build JDK
env:
JAVA_HOME: ${{ steps.setup_build_jdk.outputs.path }}
run: |
echo "$JAVA_HOME/bin" >> ${GITHUB_PATH}
- id: build_distribution
name: Build the distribution
env:
JAVA_HOME: ${{ steps.setup_build_jdk.outputs.path }}
run: |
./mvnw -DskipTests clean install
- id: set_test_jdk
name: Set the Test JDK
env:
JAVA_HOME: ${{ steps.setup_test_jdk.outputs.path }}
run: |
echo "$JAVA_HOME/bin" >> ${GITHUB_PATH}
- id: run_tests
name: Run the tests
env:
JAVA_HOME: ${{ steps.setup_test_jdk.outputs.path }}
run: |
./mvnw clean install
./mvnw surefire:test
- name: Package
- id: package
name: Archive the build folder
if: failure()
run: |
FOLDER=$(basename `pwd`)
Expand All @@ -40,7 +77,8 @@ jobs:
mv ${{ runner.temp }}/${{ env.tarFile }} ${{ github.workspace }}
- uses: keithweaver/[email protected]
name: Upload
id: upload
name: Upload the build archive to S3
if: failure()
with:
command: cp
Expand Down

0 comments on commit 6c94a85

Please sign in to comment.