Skip to content

Fix: github action fixes #5

Fix: github action fixes

Fix: github action fixes #5

Workflow file for this run

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