Skip to content

Commit

Permalink
chore(workflow): wait after starting container before running tests (#…
Browse files Browse the repository at this point in the history
…228)

This may not help but I am curious if it cuts down on the very slow
first test that we often see...
  • Loading branch information
kylelaker committed Mar 17, 2023
1 parent 495356e commit cad59bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-container-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ jobs:
-v $(pwd)/all-in-one/oscal-content:/app/oscal-content \
--name ${CONTAINER_NAME} ${TEST_TAG} &
# Give the container time to start before starting to hammer it with tests
- name: Wait 10 sec
run: |
sleep 10
- name: Run Cypress Tests
uses: cypress-io/github-action@v5
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-container-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ jobs:
-v $(pwd)/all-in-one/oscal-content:/app/oscal-content \
--name ${CONTAINER_NAME} ${IMAGE_NAME} &
# Give the container time to start before starting to hammer it with tests
- name: Wait 10 sec
run: |
sleep 10
- name: Run Cypress Tests
uses: cypress-io/github-action@v5
with:
Expand Down

0 comments on commit cad59bc

Please sign in to comment.