Skip to content

Commit e61bdc6

Browse files
chore: install docker-compose (#1115)
1 parent 6700d2c commit e61bdc6

4 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/test-and-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
username: ${{ secrets.DOCKER_USERNAME }}
3232
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
3333

34+
- name: Install Docker Compose
35+
run: |
36+
sudo apt-get update
37+
sudo apt-get install -y docker-compose
38+
3439
- name: Run Unit Tests
3540
run: make test-docker version=${{ matrix.php }}
3641

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test.php
1010
.idea/
1111
*.code-workspace
1212
.vscode
13-
prism*
13+
prism/
1414
temp.php
1515
TODO.txt
1616
sendgrid-php.zip

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ test-integ: test
2929

3030
version ?= latest
3131
test-docker:
32-
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism.sh -o prism.sh
3332
dependencies=lowest version=$(version) bash ./prism.sh
3433
dependencies=highest version=$(version) bash ./prism.sh
3534

prism.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -e
3+
4+
rm -rf prism && mkdir -p prism && cd prism
5+
git clone --depth 1 https://github.com/sendgrid/sendgrid-oai .
6+
cd prism
7+
8+
docker compose build --parallel
9+
10+
if [ -z "$command" ]; then
11+
docker compose up --force-recreate --abort-on-container-exit --remove-orphans
12+
else
13+
docker compose run helper-runner "$command"
14+
docker compose down
15+
fi

0 commit comments

Comments
 (0)