Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Run App and Test

on:
pull_request:
branches:
- develop

jobs:
test:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Checkout self
uses: actions/checkout@v3

- name: Install Test dependencies
run: |
npm ci

- name: Install API
uses: actions/checkout@v3
with:
repository: nicolo-riboni-sp/qa-app-api
path: './temp/api'
ref: 'develop'

- name: Install API dependencies and run
run: |
cd ./temp/api
npm ci
npm run start & npx wait-on http://localhost:8080
env:
CI: true

- name: Install UI
uses: actions/checkout@v3
with:
repository: nicolo-riboni-sp/qa-app-ui
path: './temp/ui'
ref: 'develop'


- name: Install UI dependencies and run
run: |
cd ./temp/ui
npm ci
npm run dev & sleep 2
env:
CI: true

- name: Run API tests
continue-on-error: true
run: |
npm run test:api


- name: Run UI tests
run: |
npm run test:ui

2 changes: 1 addition & 1 deletion jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
launch: {
headless: false,
headless: true,
slowMo: 10,
defaultViewport: null,
args: ['--window-size=1920,1080', '--no-sandbox', '--disable-setuid-sandbox', '--disable-web-security', '--disable-dev-shm-usage', '--shm-size=6gb',
Expand Down
Loading