From 73ccf1c6e4426684659cfd0bbd7d4222aff61d27 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Wed, 6 Nov 2024 16:37:18 +0000 Subject: [PATCH] Run NPM install on tests --- .github/actions/test/action.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 13187f9..1e05253 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -37,20 +37,21 @@ runs: yq '(.services.${{ inputs.service }}.build.args.IMAGE_TAG|="${{ inputs.image-tag }}")' docker-compose.yml > tmp.$$.yml && mv tmp.$$.yml docker-compose.yml PORT=$(yq '(.services.${{ inputs.service }}.ports)' docker-compose.yml | sed -e 's/^\- \(.*\)\:.*$/\1/') echo "PORT=$PORT" >> "$GITHUB_ENV" + [[ -f "package.json" ]] && npm install docker compose up ${{ inputs.service }} shell: bash - - name: Sleep for 30 seconds - uses: jakejarvis/wait-action@master - with: - time: '30s' + # - name: Sleep for 30 seconds + # uses: jakejarvis/wait-action@master + # with: + # time: '30s' - - name: Test healthcheck endpoint - run: curl -o - -I http://localhost:82/healthcheck/live/ - shell: bash + # - name: Test healthcheck endpoint + # run: curl -o - -I http://localhost:82/healthcheck/live/ + # shell: bash - name: Wait for healthcheck uses: gerdemann/http-status-code@1.0.0 with: