Skip to content

Commit

Permalink
Merge pull request #12 from quixio/ci
Browse files Browse the repository at this point in the history
Basic CI test using github actions.
  • Loading branch information
krisajenkins authored Apr 24, 2024
2 parents 56021f2 + 7e28887 commit f8aa891
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: docker-compose-actions-workflow
on: push
jobs:
test:
runs-on:
- ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build the stack
run: |
docker compose build
- name: Run the stack and check the output
run: |
docker compose up -d
echo "Checking expected output is produced"
sleep 10
CONSOLE_LOGGER_LOGS=$(docker compose logs console-logger -n 10)
docker compose down
echo "Console Logger output is:"
echo "$CONSOLE_LOGGER_LOGS"
SUCCESS_MARKER=$(echo "$CONSOLE_LOGGER_LOGS" | fgrep "This is one row of your data")
test -n "$SUCCESS_MARKER"

0 comments on commit f8aa891

Please sign in to comment.