From 4e708931c5feeb747882ed3bbcf70f58e24e01cd Mon Sep 17 00:00:00 2001 From: Steve <34465153+xxl4@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:10:32 +0800 Subject: [PATCH] add docker pull and test --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 448007d..c417500 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -86,4 +86,12 @@ jobs: # Run phpunit tests - name: Run tests run: ./vendor/bin/phpunit + + # Run Docker nexamerchant image with environment variables + - name: Run Docker image + run: docker run -d -p 8080:80 --name nexamerchant nicesteven/nexamerchant:latest + + # Docker image health check + - name: Health check + run: docker inspect --format='{{json .State.Health}}' nexamerchant