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 1212 - ' docs/**'
1313
1414jobs :
15- validate :
15+ test :
16+ name : Test
1617 runs-on : ubuntu-latest
1718 steps :
1819 - uses : actions/checkout@v4
@@ -31,10 +32,28 @@ jobs:
3132 run : npm ci
3233
3334 - name : Run tests
34- id : test
3535 working-directory : ./package
3636 run : npm test
3737
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+
3857 - name : Format code
3958 id : format
4059 working-directory : ./package
You can’t perform that action at this time.
0 commit comments