Skip to content

Commit

Permalink
ci: update test condition (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Aug 14, 2024
1 parent 20a8ae8 commit c19b9d8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main_darwin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: build-and-test-darwin
on: [push, pull_request]
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
runs-on: macos-12
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/main_linux.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Reference from:
# https://github.com/c-bata/go-prompt/blob/master/.github/workflows/test.yml
name: build-and-test-linux with coverage
on: [push, pull_request]
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/main_windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: build-and-test-windows
on: [push, pull_request]
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
runs-on: windows-latest
Expand Down

0 comments on commit c19b9d8

Please sign in to comment.