Skip to content

Commit

Permalink
Run tests on every push
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Dec 9, 2023
1 parent 13455a9 commit 22eb277
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Test on macOS
on: [pull_request, push]
on:
pull_request:
push:
paths:
- 'cmake/**'
- 'include/**'
- 'src/**'
- 'tests/**'
- 'CMakeLists.txt'

jobs:
build_macos:
runs-on: macos-latest
if: |
github.event_name == 'pull_request'
|| contains(github.event.head_commit.message, '[test]')
|| contains(github.event.head_commit.message, '[test-macos]')
|| startsWith(github.ref, 'refs/tags/v')

strategy:
fail-fast: false
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/test_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Test on Ubuntu
on: [pull_request, push]
on:
pull_request:
push:
paths:
- 'cmake/**'
- 'include/**'
- 'src/**'
- 'tests/**'
- 'CMakeLists.txt'

jobs:
build_linux:
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request'
|| contains(github.event.head_commit.message, '[test]')
|| contains(github.event.head_commit.message, '[test-linux]')
|| startsWith(github.ref, 'refs/tags/v')

strategy:
fail-fast: false
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Test on Windows
on: [pull_request, push]
on:
pull_request:
push:
paths:
- 'cmake/**'
- 'include/**'
- 'src/**'
- 'tests/**'
- 'CMakeLists.txt'

jobs:
build_win:
runs-on: windows-latest
if: |
github.event_name == 'pull_request'
|| contains(github.event.head_commit.message, '[test]')
|| contains(github.event.head_commit.message, '[test-win]')
|| startsWith(github.ref, 'refs/tags/v')

strategy:
fail-fast: false
Expand Down

0 comments on commit 22eb277

Please sign in to comment.