1+ name : Check Container Entrypoints
2+
3+ on :
4+ push :
5+ branches : [main, deliverable/add-ci-and-refine-tests]
6+
7+ jobs :
8+ bunny-run :
9+ name : Run bunny integration test
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Check out the repo
13+ uses : actions/checkout@v4
14+
15+ - name : Run bunny integration test
16+ working-directory : docker/bunny-wrapper
17+ run : docker compose -f test.compose.yml up --build --abort-on-container-exit --exit-code-from bunny
18+
19+ - name : Verify bunny output
20+ working-directory : docker/bunny-wrapper
21+ run : |
22+ OUTPUT=$(cat test-output/output.json)
23+ COUNT=$(echo "$OUTPUT" | jq '.queryResult' | jq '.count')
24+ STATUS=$(echo "$OUTPUT" | jq '.status')
25+
26+ [ "$COUNT" = "40" ] || (echo "Expected count=40, got "$COUNT" && exit 1)
27+ [ "$STATUS" = "ok" ] || (echo "Expected status=ok, got "$STATUS" && exit 1)
28+
29+ analytics-dev-run :
30+ name : Run analytics dev integration tests
31+ runs-on : ubuntu-latest
32+ steps :
33+ - name : Check out the repo
34+ uses : actions/checkout@v4
35+
36+ - name : Run analytics dev integration test
37+ working-directory : docker/analytics-dev
38+ run : docker compose -f test.compose.yml up --build --abort-on-container-exit --exit-code-from analytics-dev
39+
40+ - name : Verify analytics dev output
41+ working-directory : docker/analytics-dev
42+ run : |
43+ OUTPUT=$(cat test-output/output.json)
44+ N=$(echo "$OUTPUT" | jq '.n')
45+ TOTAL=$(echo "$OUTPUT" | jq '.total')
46+
47+ [ "$N" = "10836" ] || (echo "Expected n=10836, got "$N" && exit 1)
48+ [ "$TOTAL" = "54109.0" ] || (echo "Expected total=54109.0, got "$TOTAL" && exit 1)
49+
0 commit comments