File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 1
- # This is a basic workflow to help you get started with Actions
2
-
3
1
name : CI
4
2
5
- # Controls when the action will run.
3
+ # Controls when the action will run.
6
4
on :
7
5
# Trigger the workflow on push or pull request,
8
6
# but only for the main branch
9
7
push :
10
-
8
+
11
9
pull_request :
12
10
branches :
13
11
- main
26
24
steps :
27
25
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28
26
- uses : actions/checkout@v2
29
-
27
+ with :
28
+ fetch-depth : 0
29
+
30
+ - uses : wagoid/commitlint-github-action@v3
31
+
30
32
# Install Chrome Browser
31
33
- name : Setup Chrome
32
34
# You may pin to the exact commit or the version.
@@ -35,14 +37,14 @@ jobs:
35
37
with :
36
38
# The Chromium version to install and use.
37
39
chrome-version : stable
38
-
40
+
39
41
- name : Print chrome version
40
42
run : chrome --version
41
-
43
+
42
44
# Install NodeJS
43
45
- name : Setup Node.js environment
44
-
45
-
46
+
47
+
46
48
- name : Cache node modules
47
49
uses : actions/cache@v2
48
50
env :
55
57
${{ runner.os }}-build-${{ env.cache-name }}-
56
58
${{ runner.os }}-build-
57
59
${{ runner.os }}-
58
-
60
+
59
61
# Runs npm install
60
62
- name : Install dependencies
61
63
run : npm install
65
67
66
68
- name : Build lib
67
69
run : npm run build:lib
68
-
70
+
69
71
- name : Run tests
70
72
run : npm run test -- --watch false --browsers ChromeHeadless
71
-
73
+
72
74
- name : Run e2e tests
73
75
run : npm run e2e -- --protractor-config='e2e/protractor.ci.conf.js'
You can’t perform that action at this time.
0 commit comments