File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ name: Weather App Production Check
33on :
44 push :
55 branches : [ main ]
6- pull_request :
7- branches : [ main ]
86
97jobs :
108 build-and-test :
@@ -15,17 +13,12 @@ jobs:
1513 node-version : [18.x, 20.x]
1614
1715 steps :
18- - name : Checkout Code
19- uses : actions/checkout@v4
16+ - uses : actions/checkout@v4
2017
21- - name : Setup Node.js
22- uses : actions/setup-node@v4
18+ - uses : actions/setup-node@v4
2319 with :
2420 node-version : ${{ matrix.node-version }}
2521
26- - name : Install Dependencies
27- run : npm install
28-
2922 - name : Run Security Check
3023 run : node app.js
3124 env :
@@ -36,14 +29,12 @@ jobs:
3629 runs-on : ubuntu-latest
3730
3831 steps :
39- - name : Checkout Code
40- uses : actions/checkout@v4
32+ - uses : actions/checkout@v4
4133
42- - name : Create Build Artifact
34+ - name : Zip project
4335 run : zip -r weather-app-dist.zip . -x "*.git*"
4436
45- - name : Upload Artifact
46- uses : actions/upload-artifact@v4
37+ - uses : actions/upload-artifact@v4
4738 with :
4839 name : weather-app-dist
4940 path : weather-app-dist.zip
You can’t perform that action at this time.
0 commit comments