Skip to content

Commit

Permalink
Run NPM install on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 6, 2024
1 parent f0050a5 commit 73ccf1c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down

0 comments on commit 73ccf1c

Please sign in to comment.