File tree 1 file changed +27
-41
lines changed
1 file changed +27
-41
lines changed Original file line number Diff line number Diff line change 1
- name : Continuous Integration Workflow
1
+ name : Continuous integration workflow
2
2
3
- # This workflow is triggered whenever a new PR is created on the main branch
4
3
on :
5
4
pull_request :
6
5
branches :
7
6
- main
8
- paths :
9
- - ' web/**'
10
- push :
11
- branches :
12
- - main
13
- paths :
14
- - ' web/**'
7
+
8
+ defaults :
9
+ run :
10
+ shell : bash
11
+ working-directory : ./web
15
12
16
13
jobs :
17
14
18
- # Run unit tests to make sure everything is 👍
19
15
test :
20
- name : ' Run unit tests'
21
- defaults :
22
- run :
23
- shell : bash
24
- # Define the working directory for all run steps in the workflow
25
- working-directory : ./web
26
- # Specify the OS we want the workflow to run on
16
+ name : Run unit tests
27
17
runs-on : ubuntu-latest
28
- # Define the steps for this job
29
18
steps :
30
- - uses : actions/checkout@v2
31
- name : ' Checkout repository'
32
19
33
- - name : ' Install Dependencies'
34
- run : npm install
35
-
36
- - name : ' Run Tests'
37
- run : npm run test
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v2
22
+
23
+ - name : Install dependencies
24
+ run : npm install
25
+
26
+ - name : Run tests
27
+ run : npm run test
38
28
39
- # Run the linter to check for code style issues
40
29
lint :
41
- name : ' Run linter'
42
- defaults :
43
- run :
44
- shell : bash
45
- # Define the working directory for all run steps in the workflow
46
- working-directory : ./web
30
+ name : Run linter
47
31
runs-on : ubuntu-latest
48
- steps :
49
- - uses : actions/checkout@v2
50
- name : ' Checkout repository'
51
-
52
- - name : ' Install Dependencies'
53
- run : npm install
54
-
55
- - name : ' Run Linter'
56
- run : npx standard -v
32
+ steps :
33
+
34
+ - name : Checkout repository
35
+ uses : actions/checkout@v2
36
+
37
+ - name : Install dependencies
38
+ run : npm install
39
+
40
+ - name : Run linter
41
+ run : npx standard -v
42
+
You can’t perform that action at this time.
0 commit comments