Skip to content

Commit f9b378f

Browse files
committed
Run CI manually, on all pushes to main, or if code changes in a PR
1 parent a9ce225 commit f9b378f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/ci.yml renamed to .github/workflows/ci-build-test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
name: Build and Test
22

33
on:
4+
# Manual trigger
5+
workflow_dispatch:
6+
7+
# Run CI for all pushes to main
48
push:
59
branches: ["main"]
10+
11+
# Run CI for pull requests to all branches, but only if code changed
612
pull_request:
7-
branches: ["main"]
13+
paths:
14+
- ".github/workflows/ci-*.yml"
15+
- "*.sln"
16+
- "*.props"
17+
- "Makefile"
18+
- "src/**"
19+
- "tests/**"
20+
- "samples/**"
821

922
permissions:
1023
contents: read
@@ -79,5 +92,5 @@ jobs:
7992
publish-coverage:
8093
if: github.actor != 'dependabot[bot]'
8194
needs: build
82-
uses: ./.github/workflows/code-coverage.yml
95+
uses: ./.github/workflows/ci-code-coverage.yml
8396
secrets: inherit
File renamed without changes.

0 commit comments

Comments
 (0)