Skip to content

Commit

Permalink
Merge pull request #247 from sue445/add-integration-test
Browse files Browse the repository at this point in the history
Add integration test
  • Loading branch information
sue445 authored Jan 21, 2024
2 parents e6f37f2 + 28b3d0f commit f09450b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ jobs:
- run: bundle exec rspec
- run: bundle exec functions-framework-ruby --verify --verbose --target regional-rb-calendar

- name: Integration test
run: |
set -xe
bundle exec functions-framework-ruby --target regional-rb-calendar &
# FIXME: Wait for booting
sleep 3
# Check status code
curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/api/calendar/connpass.ics | grep "200"
curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/api/calendar/doorkeeper.ics | grep "200"
pid=$(jobs -l | grep functions-framework-ruby | awk '{print $2}')
kill -9 $pid
- name: Slack Notification
uses: lazy-actions/slatify@master
if: always()
Expand Down

0 comments on commit f09450b

Please sign in to comment.