File tree Expand file tree Collapse file tree 1 file changed +38
-7
lines changed Expand file tree Collapse file tree 1 file changed +38
-7
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,17 @@ name: Pull request
3
3
on : pull_request
4
4
5
5
jobs :
6
- build :
7
- name : Pull request
6
+ sonar_analysis :
7
+ name : Sonar analysis
8
8
runs-on : ubuntu-latest
9
-
10
9
steps :
11
- - uses : actions/checkout@v4
12
-
10
+ - uses : actions/checkout@v2
13
11
- uses : actions/setup-node@v4
14
12
with :
15
13
node-version : 20
16
14
cache : ' npm'
17
-
18
15
- name : Install dependencies
19
16
run : npm ci
20
-
21
17
- name : Sonar analysis
22
18
uses : sonarsource/sonarcloud-github-action@master
23
19
with :
@@ -27,11 +23,46 @@ jobs:
27
23
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
28
24
SONAR_HOST_URL : ${{ secrets.SONAR_HOST_URL }}
29
25
26
+ linting :
27
+ name : Code style checks
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - uses : actions/setup-node@v4
32
+ with :
33
+ node-version : 20
34
+ cache : ' npm'
35
+ - name : Install dependencies
36
+ run : npm ci
30
37
- name : Run linting
31
38
run : npm run lint
32
39
40
+ tests :
41
+ name : Javascript unit tests
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - uses : actions/checkout@v4
45
+ - uses : actions/setup-node@v4
46
+ with :
47
+ node-version : 20
48
+ cache : ' npm'
49
+ - name : Install dependencies
50
+ run : npm ci
33
51
- name : Run tests
34
52
run : npm test
35
53
54
+ ui_tests :
55
+ name : Visual regression tests
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - uses : actions/checkout@v4
59
+ - uses : actions/setup-node@v4
60
+ with :
61
+ node-version : 20
62
+ cache : ' npm'
63
+ - name : Install dependencies
64
+ run : npm ci
65
+ - name : Run tests
66
+ run : npm test
36
67
- name : Run backstop
37
68
run : npm run backstop:ci
You can’t perform that action at this time.
0 commit comments