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 25, 2024
1 parent ca95f5b commit 33aa7ae
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/lighthouse-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,19 @@ jobs:
- name: Build Maven Modules Inside Docker
run: |
docker run --rm \
-v ${{ env.CACHE_DIR }}:/home/build/ \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
build-portal-modules sh -c '
MODULES="AxonIvyPortal/portal-components AxonIvyPortal/portal AxonIvyPortal/PortalKitTestHelper Showcase/portal-user-examples Showcase/portal-developer-examples Showcase/InternalSupport Showcase/portal-components-examples"
BUILT_MODULES=""
for MODULE in $MODULES; do
mvn clean install -f ${MODULE}/pom.xml
BUILT_MODULES="$BUILT_MODULES $MODULE"
done
echo "BUILT_MODULES=$BUILT_MODULES" >> $GITHUB_ENV
'
docker build -t build-portal-modules -f build/Dockerfile .
docker run --rm -v $DOCKER_CACHE_DIR:/home/build/ \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
build-portal-modules sh -c '
MODULES="AxonIvyPortal/portal-components AxonIvyPortal/portal AxonIvyPortal/PortalKitTestHelper Showcase/portal-user-examples Showcase/portal-developer-examples Showcase/InternalSupport Showcase/portal-components-examples"
BUILT_MODULES=""
for MODULE in $MODULES; do
mvn clean install -f ${MODULE}/pom.xml
BUILT_MODULES="$BUILT_MODULES $MODULE"
done
echo "BUILT_MODULES=$BUILT_MODULES" >> $GITHUB_ENV
'
- name: Ensure Artifact Directories Exist
run: mkdir -p **/target/
Expand Down

0 comments on commit 33aa7ae

Please sign in to comment.