-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (41 loc) · 1.1 KB
/
main.yml
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
name: Main CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
main:
runs-on: ubuntu-latest
env:
TEST_RESOURCES: test-resources
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup NodeJS 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: npm-ci
run: npm ci
- name: npm-compile
run: npm run compile
- name: UI test
run: xvfb-run --auto-servernum npm run ui-test
- name: Store UI test log
uses: actions/upload-artifact@v4
if: failure() || cancelled()
with:
name: uitest-logs
path: test-resources/settings/logs/*
- name: Store UI Test screenshots
uses: actions/upload-artifact@v4
if: failure() || cancelled()
with:
name: uitest-screenshots
path: test-resources/screenshots/*.png