-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (51 loc) · 1.32 KB
/
test.yml
File metadata and controls
55 lines (51 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
backend:
name: Backend Tests
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-Ctarget-cpu=sandybridge -Ctarget-feature=+aes,+sse2,+sse4.1,+ssse3"
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v6
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
frontend-e2e:
name: Frontend E2E Tests
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-Ctarget-cpu=sandybridge -Ctarget-feature=+aes,+sse2,+sse4.1,+ssse3"
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Build frontend
run: npm run build
- name: Build backend
run: cargo build
- name: Run Playwright tests
run: npm test
env:
CI: true
- name: Upload test results
if: always()
uses: actions/upload-artifact@v5
with:
name: playwright-report
path: playwright-report/
retention-days: 7