Skip to content

Commit

Permalink
Update base fixtures and add docker-compose tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Dec 6, 2024
1 parent 1667e1c commit 531a21c
Show file tree
Hide file tree
Showing 4 changed files with 1,005 additions and 1,262 deletions.
19 changes: 19 additions & 0 deletions docker-compose.test.yml
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
Loading

0 comments on commit 531a21c

Please sign in to comment.