Skip to content

Commit

Permalink
feature/IVYPORTAL-17377-Create-pipeline-to-run-Lighthouse-report
Browse files Browse the repository at this point in the history
  • Loading branch information
nhthinh-axonivy committed Dec 26, 2024
1 parent 825b9d6 commit 8511945
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/lighthouse-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,28 @@ jobs:
- name: Start Axon Ivy Engine
run: |
# Install dirname if missing
which dirname || (sudo apt-get update && sudo apt-get install -y coreutils)
# Set absolute paths
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH}"
# Debug current location and files
pwd
echo "Current directory contents:"
ls -la
# Install required packages directly
apt-get update && apt-get install -y coreutils
# Use absolute paths and verify files
cd $ENGINE_DIR/bin
echo "Engine bin directory contents:"
ls -la
# Debug environment
echo "Current location: $(pwd)"
echo "Engine location: ${ENGINE_DIR}"
# Change to engine directory
cd "${ENGINE_DIR}/bin" || exit 1
# Verify JVM options files
echo "Checking JVM options files:"
test -f jvm-module.options && echo "jvm-module.options exists" || echo "jvm-module.options missing"
test -f jvm.options && echo "jvm.options exists" || echo "jvm.options missing"
# Make engine executable
chmod +x ./AxonIvyEngine
# Start engine with absolute paths
$ENGINE_DIR/bin/AxonIvyEngine
# Start engine with full environment
./AxonIvyEngine
env:
IVY_JAVA_HOME: ${{ env.JAVA_HOME }}
JAVA_HOME: ${{ env.JAVA_HOME }}
PATH: ${{ env.JAVA_HOME }}/bin:$PATH
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${{ env.JAVA_HOME }}/bin:$PATH

- name: Build Portal Modules
run: |
Expand Down

0 comments on commit 8511945

Please sign in to comment.