Skip to content

Commit 3407a12

Browse files
committed
Only run CI if code has changed
1 parent a9ce225 commit 3407a12

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,25 @@ name: Build and Test
33
on:
44
push:
55
branches: ["main"]
6+
paths:
7+
- ".github/workflows/ci-*.yml"
8+
- "**/*.sln"
9+
- "**/*.props"
10+
- "**/Makefile"
11+
- "/src/**"
12+
- "/tests/**"
13+
- "/samples/**"
14+
615
pull_request:
716
branches: ["main"]
17+
paths:
18+
- ".github/workflows/ci-*.yml"
19+
- "**/*.sln"
20+
- "**/*.props"
21+
- "**/Makefile"
22+
- "/src/**"
23+
- "/tests/**"
24+
- "/samples/**"
825

926
permissions:
1027
contents: read
@@ -79,5 +96,5 @@ jobs:
7996
publish-coverage:
8097
if: github.actor != 'dependabot[bot]'
8198
needs: build
82-
uses: ./.github/workflows/code-coverage.yml
99+
uses: ./.github/workflows/ci-code-coverage.yml
83100
secrets: inherit
File renamed without changes.

0 commit comments

Comments
 (0)