Skip to content

Commit 81dbd16

Browse files
authored
Adjust github actions workflow triggers (#221)
I think this might be the sauce needed to trigger: - test workflows only on pull requests against main branch and pushes to main branch (merges or direct pushes) - code coverage analysis only on pushes to main branch Closes #220
1 parent 3e50c7d commit 81dbd16

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

.github/workflows/code-coverage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Code Coverage
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- main
47

58
jobs:
69
code-coverage:

.github/workflows/libs-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Libs Test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
410

511
jobs:
612
enumerate-libs:

.github/workflows/native-image-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Native Image Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
410

511
jobs:
612
build:

.github/workflows/unit-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: Unit Tests
22

33
on:
44
push:
5-
branches: ['main']
5+
branches:
6+
- main
67
pull_request:
8+
branches:
9+
- main
710

811
jobs:
912
setup:

0 commit comments

Comments
 (0)