File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1313 steps :
1414 - name : Checkout code
1515 uses : actions/checkout@v3
16- # No additional parameters are needed as this step simply checks out the repository
16+ with :
17+ # Specify the subdirectory path where the repository should be checked out
18+ path : node-express-server
1719
1820 - name : Set up Node.js and Yarn
1921 uses : actions/setup-node@v3
2527
2628 - name : Install dependencies
2729 run : yarn install
30+ working-directory : node-express-server
2831
2932 - name : Run JSHint
3033 run : npx jshint webserver.js --show-non-errors
34+ working-directory : node-express-server
Original file line number Diff line number Diff line change @@ -15,14 +15,22 @@ jobs:
1515 steps :
1616 - name : Checkout code
1717 uses : actions/checkout@v3
18+ with :
19+ # Specify the subdirectory path where the repository should be checked out
20+ path : node-express-server
1821
1922 - name : Set up Node.js
2023 uses : actions/setup-node@v3
2124 with :
25+ # Using Node.js version 20 for compatibility with the project dependencies and JSHint.
2226 node-version : ' 20'
27+ # Caches dependencies for Yarn to speed up workflow execution
28+ cache : ' yarn'
2329
2430 - name : Install dependencies
25- run : npm install
31+ run : yarn install
32+ working-directory : node-express-server
2633
2734 - name : Run Mocha tests
28- run : npx mocha test/webserver.test.js
35+ run : npx mocha test/webserver.test.js
36+ working-directory : node-express-server
You can’t perform that action at this time.
0 commit comments