Skip to content

Commit 4b779b8

Browse files
committed
Run tests on pull requests.
1 parent 1e24e97 commit 4b779b8

File tree

8 files changed

+17
-0
lines changed

8 files changed

+17
-0
lines changed

.github/workflows/android.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
on:
22
push:
3+
pull_request:
34
name: "android"
45
jobs:
56
build:
67
name: Building Android
8+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
79
runs-on: ubuntu-latest
810
steps:
911
- uses: actions/checkout@v3

.github/workflows/ios.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
on:
22
push:
3+
pull_request:
34
name: "ios"
45
jobs:
56
build:
67
name: Building iOS
8+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
79
runs-on: macos-latest
810
steps:
911
- uses: actions/checkout@v3

.github/workflows/linux.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
on:
22
push:
3+
pull_request:
34
name: "linux"
45
jobs:
56
build_x86_64:
67
name: Building Linux x86_64
8+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
79
runs-on: ubuntu-latest
810
steps:
911
- uses: actions/checkout@v3
@@ -21,6 +23,7 @@ jobs:
2123

2224
build_aarch64:
2325
name: Building Linux aarch64
26+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
2427
runs-on: ubuntu-arm64
2528
steps:
2629
- uses: actions/checkout@v3

.github/workflows/macos.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
on:
22
push:
3+
pull_request:
34
name: "macos"
45
jobs:
56
build_macOS_aarch64:
67
name: Building macOS aarch64
8+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
79
runs-on: macos-latest
810
steps:
911
- uses: actions/checkout@v3
@@ -21,6 +23,7 @@ jobs:
2123

2224
build_macOS_x64:
2325
name: Building macOS x64
26+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
2427
runs-on: macos-14
2528
steps:
2629
- uses: actions/checkout@v3

.github/workflows/tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
on:
22
push:
3+
pull_request:
34
name: "tests"
45
jobs:
56
build:
67
name: Testing on ${{ matrix.os }}
8+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
79
runs-on: ${{ matrix.os }}
810
strategy:
911
fail-fast: false

.github/workflows/valgrind.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
build:
77
name: Testing with Valgrind on ${{ matrix.os }}
88
runs-on: ${{ matrix.os }}
9+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
910
strategy:
1011
matrix:
1112
include:

.github/workflows/wasm.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
on:
22
push:
3+
pull_request:
34
name: "wasm"
45
jobs:
56
build_wasm:
67
name: Basic WASM build
8+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
79
runs-on: ubuntu-latest
810
steps:
911
- uses: actions/checkout@v3

.github/workflows/windows.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
on:
22
push:
3+
pull_request:
34
name: "windows"
45
jobs:
56
build_windows:
67
name: Building Windows
8+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
79
runs-on: windows-latest
810
steps:
911
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)