Skip to content

Commit

Permalink
Nathan.figueroa/api tests (#34)
Browse files Browse the repository at this point in the history
* test: Postman collection for API tests

* build: Run postman tests after build

* test: Use defaults as-is
  • Loading branch information
figuernd authored Aug 2, 2024
1 parent 74d6d9a commit fcf9c2a
Show file tree
Hide file tree
Showing 2 changed files with 3,237 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,19 @@ jobs:
- name: Run test suite
run: docker-compose run sealog-server npm test

- name: Run server
- name: Run server and Postman tests
run: |
docker-compose up -d
sleep 10
curl http://localhost:8000/sealog-server > /tmp/banner.txt
grep "Welcome to sealog-server\!" /tmp/banner.txt
# Install Newman for running Postman tests
npm install -g newman
# Run Postman tests
newman run "integration-tests/api_tests.postman_collection.json"
docker-compose down
# Because `docker buildx build` cannot have multiple cache export targets
Expand Down
Loading

0 comments on commit fcf9c2a

Please sign in to comment.