Skip to content

Commit d0bcb78

Browse files
committed
Run workflow on push
1 parent a674b51 commit d0bcb78

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/cc-server-check.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ on:
88
- cron: '0 9 * * 1'
99
workflow_dispatch: # Allows manual triggering
1010
# pull_request: # Run automatically for PRs
11+
push:
12+
branches:
13+
- 'feat/**' # Trigger on feature branches
14+
paths:
15+
- 'tests/cc_server_check.py'
16+
- '.github/workflows/cc-server-check.yaml'
1117

1218
jobs:
1319
check:
14-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-latest
1521

1622
steps:
1723
- name: checkout
@@ -20,7 +26,7 @@ jobs:
2026
- name: Set up Python
2127
uses: actions/setup-python@v5
2228
with:
23-
python-version: '3.12'
29+
python-version: '3.12'
2430

2531
- name: Get Runner IP
2632
run: |
@@ -29,17 +35,16 @@ jobs:
2935
- name: Install dependencies
3036
run: |
3137
pip install requests
32-
38+
3339
- name: Run external API tests
3440
id: api_test
3541
run: |
36-
python tests/test_fail2ban.py
37-
42+
python tests/cc_server_check.py
43+
3844
- name: Upload test results
3945
if: always()
4046
uses: actions/upload-artifact@v4
4147
with:
4248
name: fail2ban-test-results-${{ github.run_number }}
4349
path: fail2ban_test_results.json
4450
retention-days: 14
45-

0 commit comments

Comments
 (0)