V2 message manager (#234)

* refactor: server run script
* refactor: extract message control feature
* refactor: socket usage for message control feature
* refactor: migrate e2e testing to playwright
* chore: add feature tests
* refactor: add validation on socket controller
* chore: jest tests server logic
* chore: update tests
* chore: run playwright tests on pull_requests
This commit is contained in:
Carlos Valente
2022-10-29 20:40:38 +02:00
committed by GitHub
parent 918f8517d2
commit a3f14182a4
26 changed files with 476 additions and 1048 deletions
+16 -7
View File
@@ -3,7 +3,7 @@
name: ontime_test_CI
on: [push, pull_request]
on: [pull_request]
jobs:
build:
@@ -43,12 +43,21 @@ jobs:
run: yarn install && yarn setdb
working-directory: ./server
- name: Electron - Run tests
- name: Server - run tests
run: yarn test
working-directory: ./server
- name: Cypress run
uses: cypress-io/github-action@v2
with:
working-directory: ./server
start: yarn cypress
# - name: Install Playwright Browsers
# run: npx playwright install --with-deps
# working-directory: ./server
#
# - name: Run Playwright tests
# run: yarn e2e
# working-directory: ./server
#
# - uses: actions/upload-artifact@v3
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 7