Skip to content

Commit 3bf1051

Browse files
authored
Merge pull request #39 from Endorpheen/feature/frontend-tests-stabilization
Stabilize frontend tests
2 parents eb9ca67 + d411955 commit 3bf1051

15 files changed

Lines changed: 464 additions & 5356 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
apt-get update
6060
apt-get install -y curl git nodejs npm
6161
62+
- name: Cache npm
63+
uses: actions/cache@v4
64+
with:
65+
path: ~/.npm
66+
key: ${{ runner.os }}-frontend-npm-${{ hashFiles('web-ui/package-lock.json') }}
67+
restore-keys: |
68+
${{ runner.os }}-frontend-npm-
69+
6270
- name: Install Node.js 20
6371
run: |
6472
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
@@ -67,9 +75,39 @@ jobs:
6775
- name: Install dependencies
6876
run: npm ci
6977

78+
- name: Lint
79+
run: npm run lint
80+
81+
- name: Run unit tests
82+
run: npm run test:unit
83+
7084
- name: Build
7185
run: npm run build
7286

87+
- name: Cache Playwright browsers
88+
uses: actions/cache@v4
89+
with:
90+
path: ~/.cache/ms-playwright
91+
key: ${{ runner.os }}-playwright-${{ hashFiles('web-ui/package-lock.json') }}
92+
restore-keys: |
93+
${{ runner.os }}-playwright-
94+
95+
- name: Install Playwright browsers
96+
run: npx playwright install --with-deps
97+
98+
- name: Run e2e tests
99+
run: npm run test:e2e
100+
101+
- name: Upload frontend logs
102+
if: always()
103+
uses: actions/upload-artifact@v4
104+
with:
105+
name: frontend-logs
106+
path: |
107+
reports/frontend/logs
108+
test-results
109+
if-no-files-found: ignore
110+
73111
docker:
74112
name: docker
75113
runs-on: ubuntu-latest

reports/frontend/coverage/coverage-final.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)