Update README.md #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Action | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
surrealdb-setup: | |
runs-on: ubuntu-latest | |
name: Run Action | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Action | |
uses: ./ | |
- name: Try to retrieve response from port 8000 | |
run: bash -c 'echo -n "Waiting port 8000 .."; for _ in `seq 1 40`; do echo -n .; sleep 0.25; nc -z localhost 8000 && echo " Open." && exit ; done; echo " Timeout!" >&2; exit 1' | |
- name: Sleep 1 second | |
run: sleep 1 | |
- name: Execute version in docker | |
run: curl http://localhost:8000/version |