66 - ' *'
77 branches :
88 - ' *'
9+ - ' */**'
910 pull_request :
1011
1112concurrency :
1213 group : ${{ github.workflow }}-${{ github.ref }}
1314 cancel-in-progress : true
1415
1516jobs :
16- build :
17+ test :
1718 strategy :
1819 fail-fast : false
1920 matrix :
2223 - ubuntu-22.04 # This is CentOS 7 under the hood
2324 - macos-12
2425 - windows-latest
26+
2527 runs-on : ${{ matrix.os }}
2628 env :
2729 MODE : ${{ matrix.os }}
@@ -70,16 +72,28 @@ jobs:
7072 node --version
7173 python3 -V
7274
73- - name : Install packages ${{ matrix.os }}
75+ - name : Install Dep. packages Linux latest & windows & MacOS
7476 if : ${{ matrix.os != 'ubuntu-22.04' }}
7577 run : |
76- npm install
77- python3 -m pip install -r requirements.txt
78+ npm install
79+ python3 -m pip install -r requirements.txt
80+ npx playwright install --with-deps
81+
82+ - name : Unit Pytest Linux latest & windows & MacOS
83+ if : ${{ matrix.os != 'ubuntu-22.04' }}
84+ run : python3 -m pytest
85+
86+ - name : Unit Jtest Linux latest & windows & MacOS
87+ if : ${{ matrix.os != 'ubuntu-22.04' }}
88+ run : npm test
89+
90+ - name : E2E Playwright tests on Linux latest & MacOS
91+ if : ${{ matrix.os == 'ubuntu-latest' }}
92+ run : npm run compile && xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npx playwright test
7893
7994 - name : Run ESLint only on ubuntu-latest
8095 if : ${{ matrix.os == 'ubuntu-latest' }}
81- run : |
82- npx eslint src/
96+ run : npx eslint src/
8397
8498 - name : Install packages CentOS 7 & Run pytest & frontend test
8599 if : ${{ matrix.os == 'ubuntu-22.04' }}
@@ -95,24 +109,16 @@ jobs:
95109 python3 -m pytest
96110 npm test
97111
98- - name : Run pytest on ${{ matrix.os }}
99- if : ${{ matrix.os != 'ubuntu-22.04' }}
100- run : python3 -m pytest
101-
102- - name : Run frontend unit test on ${{ matrix.os }}
103- if : ${{ matrix.os != 'ubuntu-22.04' }}
104- run : |
105- npm test
106-
107112 publish :
108- needs : build
113+ needs : test
109114 strategy :
110115 fail-fast : false
111116 matrix :
112117 os :
113118 - ubuntu-22.04 # This is CentOS 7 under the hood
114119 - macos-12
115120 - windows-latest
121+
116122 runs-on : ${{ matrix.os }}
117123 permissions :
118124 contents : write
0 commit comments