diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 16b0ec0..24865a5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,21 +8,27 @@ on:
mvnArgs:
type: string
required: false
+ javaVersion:
+ type: number
+ default: 17
+ mvnVersion:
+ type: string
+ default: 3.6.3
schedule:
- cron: '21 21 * * *'
-
jobs:
build:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
- name: Setup Java JDK
- uses: actions/setup-java@v1.4.3
+ uses: actions/setup-java@v4
with:
- java-version: 17
+ java-version: ${{ inputs.javaVersion || '17' }}
+ distribution: temurin
- name: Install and start SFTP
run: |
@@ -37,18 +43,37 @@ jobs:
echo "adding user to group ${sshGroup}"
sudo useradd -s /bin/bash -d /home/usr -m -g ${sshGroup} -p $(echo pwd | openssl passwd -1 -stdin) usr
+ - name: Setup Maven
+ uses: stCarolas/setup-maven@v5
+ with:
+ maven-version: ${{ inputs.mvnVersion || '3.6.3' }}
+
- name: Build with Maven
- run: mvn clean verify --batch-mode ${{ inputs.mvnArgs }}
+ run: mvn clean verify --batch-mode --fail-at-end ${{ inputs.mvnArgs }}
- name: Publish Unit Test Results
- uses: EnricoMi/publish-unit-test-result-action@v1
+ uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
- files: "*/target/*-reports/TEST*.xml"
+ junit_files: |
+ */target/*-reports/*.xml
+ !*/target/*-reports/failsafe-summary.xml
- - name: Archive build artifacts
- uses: actions/upload-artifact@v2
+ - name: Archive build artifact
+ uses: actions/upload-artifact@v4
with:
path: |
*/target/*.iar
+ */target/*-[0-9]*.jar
*product/target/*.zip
+
+ - name: Archive test reports
+ uses: actions/upload-artifact@v4
+ if: failure()
+ with:
+ name: test-reports
+ retention-days: 5
+ path: |
+ */target/testEngineOut.log
+ */target/selenide/*
+ */target/ivyEngine/deploy/*/*.deploymentLog
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index d55fdca..704f7d7 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -10,4 +10,6 @@ jobs:
build:
uses: ./.github/workflows/ci.yml
with:
- mvnArgs: '"-Divy.engine.download.url=https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" "-Divy.engine.version=(10.0.0,]"'
+ mvnArgs: '"-Divy.engine.download.url=https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" "-Divy.engine.version=(10.0.0,]" "-Dproject.build.plugin.version=11.4.0-SNAPSHOT"'
+ javaVersion: 21
+ mvnVersion: 3.9.8
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 128a183..ab5b0d7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -4,4 +4,4 @@ on: workflow_dispatch
jobs:
build:
- uses: axonivy-market/github-workflows/.github/workflows/release.yml@v2
+ uses: axonivy-market/github-workflows/.github/workflows/release.yml@v4
diff --git a/sftp-connector-demo/pom.xml b/sftp-connector-demo/pom.xml
index d1980b8..0317891 100644
--- a/sftp-connector-demo/pom.xml
+++ b/sftp-connector-demo/pom.xml
@@ -6,6 +6,9 @@