Update ui-tests.js.yml

This commit is contained in:
Delirium 2023-01-19 14:14:49 +01:00 committed by Delirium
parent be3996e4c8
commit 688dfeca56

View file

@ -1,14 +1,15 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
# Checking unit and visual tests locally on every merge rq to dev and main
name: Node.js CI
on:
push:
branches: [ "main" ]
paths:
- frontend/**
pull_request:
branches: [ "dev" ]
branches: [ "dev", "main" ]
paths:
- frontend/**
jobs:
build:
runs-on: ubuntu-latest
@ -26,9 +27,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup yarn
- name: Setup packages
run: npm i --legacy-peer-deps --ignore-scripts
- name: unit tests
- name: Run unit tests
run: npm test --if-resent
- name: visual tests
- name: Run Frontend
run: npm start
- name: Wait for frontend
run: npx wait-on http://0.0.0.0:3333
- name: Run visual tests
run: npm run cy:test --if-present