Skip to content

Commit 1c7bab6

Browse files
committed
Add a test-all.yaml workflow
1 parent 05ea5f8 commit 1c7bab6

3 files changed

Lines changed: 73 additions & 5 deletions

File tree

.github/workflows/test-all.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Test All Bindings
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
core:
7+
description: 'Test core library'
8+
type: boolean
9+
default: true
10+
clojure:
11+
description: 'Test Clojure binding'
12+
type: boolean
13+
default: true
14+
csharp:
15+
description: 'Test C# binding'
16+
type: boolean
17+
default: true
18+
fortran:
19+
description: 'Test Fortran binding'
20+
type: boolean
21+
default: true
22+
go:
23+
description: 'Test Go binding'
24+
type: boolean
25+
default: true
26+
nodejs:
27+
description: 'Test Node.js binding'
28+
type: boolean
29+
default: true
30+
perl:
31+
description: 'Test Perl binding'
32+
type: boolean
33+
default: true
34+
python:
35+
description: 'Test Python binding'
36+
type: boolean
37+
default: true
38+
rust:
39+
description: 'Test Rust binding'
40+
type: boolean
41+
default: true
42+
43+
jobs:
44+
test-all:
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
os: [ubuntu-latest, macos-latest, windows-latest]
49+
runs-on: ${{ matrix.os }}
50+
defaults:
51+
run:
52+
shell: bash
53+
steps:
54+
- uses: actions/checkout@v4
55+
- if: inputs.core
56+
run: make test-core
57+
- if: inputs.clojure
58+
run: make test-clojure
59+
- if: inputs.csharp
60+
run: make test-csharp
61+
- if: inputs.fortran
62+
run: make test-fortran
63+
- if: inputs.go
64+
run: make test-go
65+
- if: inputs.nodejs
66+
run: make test-nodejs
67+
- if: inputs.perl
68+
run: make test-perl
69+
- if: inputs.python
70+
run: make test-python
71+
- if: inputs.rust
72+
run: make test-rust
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Test
33
on:
44
push:
55
pull_request:
6-
workflow_dispatch:
76

87
jobs:
98
test:
@@ -17,7 +16,4 @@ jobs:
1716
shell: bash
1817
steps:
1918
- uses: actions/checkout@v4
20-
- run: ${{ github.event_name == 'workflow_dispatch'
21-
&& 'make test-all'
22-
|| 'make test'
23-
}}
19+
- run: make test

0 commit comments

Comments
 (0)