File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 12
12
- ' docs/**'
13
13
14
14
jobs :
15
- validate :
15
+ test :
16
+ name : Test
16
17
runs-on : ubuntu-latest
17
18
steps :
18
19
- uses : actions/checkout@v4
@@ -31,10 +32,28 @@ jobs:
31
32
run : npm ci
32
33
33
34
- name : Run tests
34
- id : test
35
35
working-directory : ./package
36
36
run : npm test
37
37
38
+ validate :
39
+ needs : test
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - uses : actions/checkout@v4
43
+ with :
44
+ ref : ${{ github.head_ref }}
45
+
46
+ - name : Setup Node.js
47
+ uses : actions/setup-node@v4
48
+ with :
49
+ node-version : ' 20.x'
50
+ cache : ' npm'
51
+ cache-dependency-path : ' package/package-lock.json'
52
+
53
+ - name : Install dependencies
54
+ working-directory : ./package
55
+ run : npm ci
56
+
38
57
- name : Format code
39
58
id : format
40
59
working-directory : ./package
You can’t perform that action at this time.
0 commit comments