2022-10-13 23:23:53 +02:00
|
|
|
name: Backend system tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-10-17 23:05:39 +02:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*"
|
2022-10-13 23:23:53 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-10-14 09:26:30 +02:00
|
|
|
system-tests:
|
2022-10-13 23:23:53 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-10-14 09:26:30 +02:00
|
|
|
container: node:18
|
2022-10-13 23:23:53 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Dependencies
|
2022-10-14 09:26:30 +02:00
|
|
|
working-directory: ./backend
|
2022-10-13 23:23:53 +02:00
|
|
|
run: npm install
|
|
|
|
- name: Create .env file
|
2022-10-14 09:26:30 +02:00
|
|
|
working-directory: ./backend
|
2022-10-13 23:23:53 +02:00
|
|
|
run: mv .env.example .env
|
|
|
|
- name: Run Server and Test with Newman
|
2022-10-14 09:26:30 +02:00
|
|
|
working-directory: ./backend
|
2022-10-13 23:23:53 +02:00
|
|
|
run: npm run test:system
|