Skip to content

Commit 3e62858

Browse files
authored
Refactor CI workflow in main.yml
Updated CI workflow configuration for clarity and structure.
1 parent 15a1eb6 commit 3e62858

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
on:
1+
# This is a basic CI workflow
22

3-
push:
4-
branches: ["main"]
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
push:
9+
branches: ["main"]
510

611
pull_request:
712
branches: ["main"]
813

9-
#Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
1116

1217
jobs:
1318
build:
@@ -27,3 +32,4 @@ jobs:
2732
run: |
2833
echo Add other actions to build,
2934
echo test, and deploy your project.
35+

0 commit comments

Comments
 (0)