Skip to content

Commit

Permalink
Merge branch 'main' into allow_starkbank_ecdsa_2
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 authored Nov 20, 2024
2 parents 589671a + e61bdc6 commit 2eddaf3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTH_TOKEN }}

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Run Unit Tests
run: make test-docker version=${{ matrix.php }}

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.php
.idea/
*.code-workspace
.vscode
prism*
prism/
temp.php
TODO.txt
sendgrid-php.zip
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ test-integ: test

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

Expand Down
15 changes: 15 additions & 0 deletions prism.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -e

rm -rf prism && mkdir -p prism && cd prism
git clone --depth 1 https://github.com/sendgrid/sendgrid-oai .
cd prism

docker compose build --parallel

if [ -z "$command" ]; then
docker compose up --force-recreate --abort-on-container-exit --remove-orphans
else
docker compose run helper-runner "$command"
docker compose down
fi

0 comments on commit 2eddaf3

Please sign in to comment.