-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update base fixtures and add docker-compose tests
Signed-off-by: Kyle Harding <kyle@balena.io>
- Loading branch information
Showing
4 changed files
with
1,005 additions
and
1,262 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# These tests use the real GitHub endpoints for API calls, only the events are fixtures. | ||
# So if GitHub is down, these tests will fail. Consider them to be integration tests. | ||
# https://probot.github.io/docs/simulating-webhooks/ | ||
|
||
services: | ||
sut: | ||
image: sut:latest | ||
build: . | ||
env_file: | ||
- .env | ||
volumes: | ||
- ./tests/fixtures:/usr/src/app/fixtures:ro | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
set -ex | ||
node_modules/.bin/probot receive -e deployment_protection_rule -p fixtures/deployment_protection_rule.requested.json ./lib/index.js | ||
node_modules/.bin/probot receive -e pull_request_review -p fixtures/pull_request_review.submitted.json ./lib/index.js |
Oops, something went wrong.