@@ -23,50 +23,49 @@ jobs:
23
23
node-version : [16]
24
24
25
25
steps :
26
-
27
-
28
-
29
- - name : Use Node.js ${{ matrix.node-version }}
30
-
31
- with :
32
- node-version : ${{ matrix.node-version }}
33
-
34
- - name : Load cached dependencies
35
-
36
- id : cache
37
- with :
38
- path : |
39
- **/node_modules
40
- /home/runner/.cache/Cypress
41
- key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
42
-
43
- - name : Install dependencies
44
- id : install-dependencies
45
- if : steps.cache.outputs.cache-hit != 'true'
46
- run : npm install
47
-
48
- # - name: Fix code style linting errors
49
- # id: lint-fix
50
- # run: npm run lint:fix
51
- # continue-on-error: true
52
- #
53
- # - name: Commit fixed linting errors
54
- # id: commit
55
- # uses: stefanzweifel/git-auto-commit-action@v4
56
- # with:
57
- # commit_message: "ci: fix code style linting errors"
58
-
59
- - name : Lint code
60
- id : lint
61
- run : npm run lint
62
-
63
- - name : Send Slack notifications
64
- uses : act10ns/slack@v1
65
- if : failure()
66
- with :
67
- status : ${{ job.status }}
68
- steps : ${{ toJson(steps) }}
69
- channel : ' #tiptap-notifications'
26
+
27
+
28
+ - name : Use Node.js ${{ matrix.node-version }}
29
+
30
+ with :
31
+ node-version : ${{ matrix.node-version }}
32
+
33
+ - name : Load cached dependencies
34
+
35
+ id : cache
36
+ with :
37
+ path : |
38
+ **/node_modules
39
+ /home/runner/.cache/Cypress
40
+ key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
41
+
42
+ - name : Install dependencies
43
+ id : install-dependencies
44
+ if : steps.cache.outputs.cache-hit != 'true'
45
+ run : npm install
46
+
47
+ # - name: Fix code style linting errors
48
+ # id: lint-fix
49
+ # run: npm run lint:fix
50
+ # continue-on-error: true
51
+ #
52
+ # - name: Commit fixed linting errors
53
+ # id: commit
54
+ # uses: stefanzweifel/git-auto-commit-action@v4
55
+ # with:
56
+ # commit_message: "ci: fix code style linting errors"
57
+
58
+ - name : Lint code
59
+ id : lint
60
+ run : npm run lint
61
+
62
+ - name : Send Slack notifications
63
+ uses : act10ns/slack@v1
64
+ if : failure()
65
+ with :
66
+ status : ${{ job.status }}
67
+ steps : ${{ toJson(steps) }}
68
+ channel : ' #tiptap-notifications'
70
69
71
70
test :
72
71
runs-on : ubuntu-latest
@@ -79,48 +78,55 @@ jobs:
79
78
node-version : [16]
80
79
81
80
steps :
82
-
83
-
84
-
85
- - name : Use Node.js ${{ matrix.node-version }}
86
-
87
- with :
88
- node-version : ${{ matrix.node-version }}
89
-
90
- - name : Run tests with Cypress
91
- id : cypress
92
- uses :
cypress-io/[email protected]
93
- with :
94
- cache-key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
95
- start : npm run start
96
- wait-on : ' http://localhost:3000'
97
- project : ./tests
98
- browser : chrome
99
- quiet : true
100
-
101
- - name : Export screenshots (on failure only)
102
-
103
- if : failure()
104
- with :
105
- name : cypress-screenshots
106
- path : tests/cypress/screenshots
107
- retention-days : 7
108
-
109
- - name : Export screen recordings (on failure only)
110
-
111
- if : failure()
112
- with :
113
- name : cypress-videos
114
- path : tests/cypress/videos
115
- retention-days : 7
116
-
117
- - name : Send Slack notifications
118
- uses : act10ns/slack@v1
119
- if : failure()
120
- with :
121
- status : ${{ job.status }}
122
- steps : ${{ toJson(steps) }}
123
- channel : ' #tiptap-notifications'
81
+
82
+
83
+ - name : Use Node.js ${{ matrix.node-version }}
84
+
85
+ with :
86
+ node-version : ${{ matrix.node-version }}
87
+
88
+ - name : Install dependencies
89
+ id : install-dependencies
90
+ run : npm install
91
+
92
+ - name : Try to build the packages
93
+ id : build-packages
94
+ run : npm run build:pm
95
+
96
+ - name : Run tests with Cypress
97
+ id : cypress
98
+ uses :
cypress-io/[email protected]
99
+ with :
100
+ cache-key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
101
+ start : npm run start
102
+ wait-on : ' http://localhost:3000'
103
+ project : ./tests
104
+ browser : chrome
105
+ quiet : true
106
+
107
+ - name : Export screenshots (on failure only)
108
+
109
+ if : failure()
110
+ with :
111
+ name : cypress-screenshots
112
+ path : tests/cypress/screenshots
113
+ retention-days : 7
114
+
115
+ - name : Export screen recordings (on failure only)
116
+
117
+ if : failure()
118
+ with :
119
+ name : cypress-videos
120
+ path : tests/cypress/videos
121
+ retention-days : 7
122
+
123
+ - name : Send Slack notifications
124
+ uses : act10ns/slack@v1
125
+ if : failure()
126
+ with :
127
+ status : ${{ job.status }}
128
+ steps : ${{ toJson(steps) }}
129
+ channel : ' #tiptap-notifications'
124
130
125
131
build :
126
132
runs-on : ubuntu-latest
@@ -135,36 +141,35 @@ jobs:
135
141
node-version : [16]
136
142
137
143
steps :
138
-
139
-
140
-
141
- - name : Use Node.js ${{ matrix.node-version }}
142
-
143
- with :
144
- node-version : ${{ matrix.node-version }}
145
-
146
- - name : Load cached dependencies
147
-
148
- id : cache
149
- with :
150
- path : |
151
- **/node_modules
152
- /home/runner/.cache/Cypress
153
- key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
154
-
155
- - name : Install dependencies
156
- id : install-dependencies
157
- if : steps.cache.outputs.cache-hit != 'true'
158
- run : npm install
159
-
160
- - name : Try to build the packages
161
- id : build-packages
162
- run : npm run build:ci
163
-
164
- - name : Send Slack notifications
165
- uses : act10ns/slack@v1
166
- if : failure()
167
- with :
168
- status : ${{ job.status }}
169
- steps : ${{ toJson(steps) }}
170
- channel : ' #tiptap-notifications'
144
+
145
+
146
+ - name : Use Node.js ${{ matrix.node-version }}
147
+
148
+ with :
149
+ node-version : ${{ matrix.node-version }}
150
+
151
+ - name : Load cached dependencies
152
+
153
+ id : cache
154
+ with :
155
+ path : |
156
+ **/node_modules
157
+ /home/runner/.cache/Cypress
158
+ key : ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
159
+
160
+ - name : Install dependencies
161
+ id : install-dependencies
162
+ if : steps.cache.outputs.cache-hit != 'true'
163
+ run : npm install
164
+
165
+ - name : Try to build the packages
166
+ id : build-packages
167
+ run : npm run build:ci
168
+
169
+ - name : Send Slack notifications
170
+ uses : act10ns/slack@v1
171
+ if : failure()
172
+ with :
173
+ status : ${{ job.status }}
174
+ steps : ${{ toJson(steps) }}
175
+ channel : ' #tiptap-notifications'
0 commit comments