Skip to content

Commit a93b905

Browse files
committed
Update schedule to only run GHA on pull requests (the unit tests specifically only run when src/** or tests/** change)
1 parent 695f081 commit a93b905

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build_and_test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Run unit tests
22

33
on:
4-
push:
4+
pull_request:
5+
paths:
6+
- 'src/**'
7+
- 'tests/**'
58

69
jobs:
710
unit-tests:

.github/workflows/check_policies.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: check-policies
2-
on: [push]
2+
3+
on: [pull_request]
4+
35
jobs:
46
check-commit-messages:
57
runs-on: ubuntu-latest
@@ -14,6 +16,7 @@ jobs:
1416
- run: |
1517
bash .github/workflows/check_commit_messages.sh \
1618
${{ github.event.before }} ${{ github.event.after }}
19+
1720
check-formatting:
1821
runs-on: ubuntu-latest
1922
steps:

0 commit comments

Comments
 (0)