Skip to content

Commit ef17a47

Browse files
authored
Update weather CI workflow configuration
Removed pull request trigger and cleaned up steps.
1 parent 321c6af commit ef17a47

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

.github/workflows/weather-ci.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Weather App Production Check
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
86

97
jobs:
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

0 commit comments

Comments
 (0)