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 # Checking unit and visual tests locally on every merge rq to dev and main
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI name: Node.js CI
on: on:
push: push:
branches: [ "main" ] branches: [ "main" ]
paths:
- frontend/**
pull_request: pull_request:
branches: [ "dev" ] branches: [ "dev", "main" ]
paths:
- frontend/**
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -26,9 +27,13 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Setup yarn - name: Setup packages
run: npm i --legacy-peer-deps --ignore-scripts run: npm i --legacy-peer-deps --ignore-scripts
- name: unit tests - name: Run unit tests
run: npm test --if-resent 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 run: npm run cy:test --if-present