Skip to content

Commit c19b9d8

Browse files
authored
ci: update test condition (#112)
Signed-off-by: peefy <[email protected]>
1 parent 20a8ae8 commit c19b9d8

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.github/workflows/main_darwin.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: build-and-test-darwin
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
39
jobs:
410
build-and-test:
511
runs-on: macos-12

.github/workflows/main_linux.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# Reference from:
22
# https://github.com/c-bata/go-prompt/blob/master/.github/workflows/test.yml
33
name: build-and-test-linux with coverage
4-
on: [push, pull_request]
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
push:
9+
branches:
10+
- main
511
jobs:
612
build-and-test:
713
runs-on: ubuntu-latest

.github/workflows/main_windows.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: build-and-test-windows
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
39
jobs:
410
build-and-test:
511
runs-on: windows-latest

0 commit comments

Comments
 (0)