fix: update #12
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: push-main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install rocksdb | |
run: sudo apt-get install librocksdb-dev libsnappy-dev | |
- name: Run all make stuff | |
run: make all | |
- name: Check 200 on port | |
run: | | |
# Wait for stack to come up | |
sleep 30 | |
# Perform the request and extract the status code | |
status_code=$(curl -o /dev/null -s -w "%{http_code}\n" "http://localhost") | |
# Check if the status code is 200 | |
if [ "$status_code" -eq 200 ]; then | |
echo "Success: HTTP status code is 200" | |
else | |
echo "Failure: HTTP status code is not 200, it's $status_code" | |
exit 1 | |
fi |