@@ -52,51 +52,27 @@ jobs:
5252 cd apl-core
5353 npm install
5454 npm run server > $GITHUB_WORKSPACE/core.log 2>&1 &
55- # - name: Start api
56- # run: |
57- # npm install
58- # cp .env.sample .env
59- # RUNNER_TRACKING_ID="" && npm run dev > $GITHUB_WORKSPACE/api.log 2>&1 &
60- - uses : JarvusInnovations/background-action@v1
61- name : Bootstrap System Under Test (SUT)
62- with :
63- run : |
64- npm install
65- cp .env.sample .env
66- npm run dev
67- # your step-level and job-level environment variables are available to your commands as-is
68- # npm install will count towards the wait-for timeout
69- # whenever possible, move unrelated scripts to a different step
70- # to background multiple processes: add & to the end of the command
71-
72- wait-on : |
73- http://localhost:8080
74- # IMPORTANT: to use environment variables in wait-on, you must use this form: ${{ env.VAR }}
75- # See wait-on section below for all resource types and prefixes
76-
77- tail : true # true = stderr,stdout
78- # This will allow you to monitor the progress live
79-
80- wait-for : 5m
81-
82- log-output-if : failure
83- # failure = exit-early or timeout
84- # - name: Wait for api
85- # run: |
86- # echo "Waiting for API to be ready..."
87- # while ! curl -s -f -o /dev/null http://localhost:8080/v2/builds; do
88- # sleep 10
89- # done
90- # echo "API is ready!"
55+ - name : Start api
56+ run : |
57+ npm install
58+ cp .env.sample .env
59+ npm run dev > $GITHUB_WORKSPACE/api.log 2>&1 &
60+ - name : Wait for api
61+ run : |
62+ echo "Waiting for API to be ready..."
63+ while ! curl -s -f -o /dev/null http://localhost:8080/v2/builds; do
64+ sleep 10
65+ done
66+ echo "API is ready!"
9167 - name : Install Postman CLI
9268 run : |
9369 curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh
9470 - name : Login to Postman CLI
9571 run : postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }}
9672
97- - name : Run API tests
98- run : |
99- postman collection run "44183872-d3b3cdc9-ba1f-4a71-bcba-6a3cb3dc9643" -e "43715313-d380e919-5142-44e6-b52c-02f8b04da8fa" -i "44183872-cb769d53-ad67-4f87-9d74-eabf11adec74"
73+ # - name: Run API tests
74+ # run: |
75+ # postman collection run "44183872-d3b3cdc9-ba1f-4a71-bcba-6a3cb3dc9643" -e "43715313-d380e919-5142-44e6-b52c-02f8b04da8fa" -i "44183872-cb769d53-ad67-4f87-9d74-eabf11adec74"
10076 - name : Upload logs
10177 if : always()
10278 uses : actions/upload-artifact@v4
0 commit comments