chore: add system test action
This commit is contained in:
21
.github/workflows/backend-system-tests.yml
vendored
Normal file
21
.github/workflows/backend-system-tests.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Backend system tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
integration-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: node:18-alpine
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: backend
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
- name: Create .env file
|
||||||
|
run: mv .env.example .env
|
||||||
|
- name: Run Server and Test with Newman
|
||||||
|
run: npm run test:system
|
||||||
Reference in New Issue
Block a user