try to get prisma schema set up #7
Workflow file for this run
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
name: Postman tests | |
on: | |
push: | |
branches: [main, dev/postman-tests] | |
jobs: | |
run-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: | |
uses: actions/checkout@v2 | |
- name: Start API | |
run: | | |
cd next | |
npm i | |
npx prisma migrate dev && npx prisma db seed && npm run dev & | |
sleep 20 | |
- name: Run API Tests | |
id: run-newman | |
uses: anthonyvscode/newman-action@v1 | |
with: | |
collection: next/postman/WebsiteTheSSEquelTests.postman_collection.json | |
environment: next/postman/WebsiteTheSSEquelTests.postman_collection.json | |
reporters: cli | |
- name: Output summary to console | |
run: echo ${{ steps.run-newman.outputs.summary }} |