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 5af379a commit 9d278fe
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/lighthouse-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,37 @@ jobs:
- name: Set Up Directories
run: |
sudo mkdir -p /opt/ivy/engine
cd /opt
sudo mkdir ivy
sudo chown $USER:$USER /opt/ivy
mkdir -p /opt/ivy/engine/nightly
- name: Download Engine
run: |
echo "Downloading engine from $ENGINE_URL ..."
cd /opt/ivy/engine
wget $ENGINE_URL -o axonivy-engine
cd /opt/ivy
mkdir engine
wget $ENGINE_URL
unzip -o axonivy-engine -d nightly
rm axonivy-engine
- name: List Engine Files
run: |
ls -al $ENGINE_DIR
- name: Verify Engine Files
run: |
ls -l $ENGINE_DIR
ls -l $ENGINE_DIR/bin
- name: Start Axon Ivy Engine
run: |
cd $ENGINE_DIR/bin
./AxonIvyEngine
env:
IVY_JAVA_HOME: ${{ env.JAVA_HOME }}
JAVA_HOME: ${{ env.JAVA_HOME }}
PATH: ${{ env.PATH }}

- name: Build Portal Modules
run: |
modules=(
Expand All @@ -72,30 +87,15 @@ jobs:
echo "Building $module..."
mvn clean install -f $module/pom.xml -Divy.engine.directory=$ENGINE_DIR
done
- name: Deploy Portal Modules
run: |
DEPLOYMENT=$ENGINE_DIR/system/demo-applications/demo-portal
rm -rf $DEPLOYMENT/*
cp Showcase/portal-demo-app/target/*.zip $DEPLOYMENT
cp Showcase/portal-developer-examples/target/*.iar $DEPLOYMENT
cp Showcase/portal-components-examples/target/*.iar $DEPLOYMENT
# - name: Verify Engine Files
# run: |
# ls -l $ENGINE_DIR
# ls -l $ENGINE_DIR/bin

# - name: Start Axon Ivy Engine
# run: |
# cd $ENGINE_DIR/bin
# ./AxonIvyEngine
# env:
# IVY_JAVA_HOME: ${{ env.JAVA_HOME }}
# JAVA_HOME: ${{ env.JAVA_HOME }}
# PATH: ${{ env.PATH }}


lighthouse-audit:
name: Lighthouse Audit
needs: build
Expand Down

0 comments on commit 9d278fe

Please sign in to comment.