Skip to content
2 changes: 1 addition & 1 deletion .github/workflows/release2github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:

- name: Archive results
if: ${{ always() }}
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
with:
name: Results
path: ${{ github.workspace }}/out/*
1 change: 1 addition & 0 deletions .github/workflows/scripts/runapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
environment:
ADMIN_PASSWORD: Password1!
DATABASE_ENDPOINT: postgres://mendix:mendix@db:5432/mendix
MX_UnitTesting_Enabled: "true"
ports:
- 8080:8080
links:
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,23 @@ jobs:
echo "Detected MX Version:$VERSION"
echo "MX_VERSION=$VERSION" >> $GITHUB_ENV

- name: Create build directory
run: |
mkdir build-pack/build

- name: Create output directory
run: mkdir $GITHUB_WORKSPACE/out

- name: Copy application files to build directory
run: cp -v -r app/Source/. build-pack/build
- name: Build Mendix app
run: |
cd build-pack
python3 build.py --source ../app/Source --destination ../docker-context build-mda-dir

- name: Build docker image
- name: Build rootfs images
run: |
cd build-pack
docker build -t mendix-rootfs:app -f rootfs-app.dockerfile .
docker build -t mendix-rootfs:builder -f rootfs-builder.dockerfile .
docker build -t mxbuildpack --build-arg BUILD_PATH=build .

- name: Build docker image
run: |
docker build -t mxbuildpack docker-context

- name: Run application
run: |
Expand Down Expand Up @@ -86,7 +87,7 @@ jobs:

- name: Archive results
if: ${{ always() }}
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
with:
name: Results
path: ${{ github.workspace }}/out/*