Skip to content

Commit cd1495d

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

3 files changed

Lines changed: 86 additions & 6 deletions

File tree

.github/workflows/test-all.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
- name: Checkout code
55+
uses: actions/checkout@v4
56+
- name: Test core library
57+
if: inputs.core
58+
run: make test-core
59+
- name: Test Clojure binding
60+
if: inputs.clojure
61+
run: make test-clojure
62+
- name: Test C# binding
63+
if: inputs.csharp
64+
run: make test-csharp
65+
- name: Test Fortran binding
66+
if: inputs.fortran
67+
run: make test-fortran
68+
- name: Test Go binding
69+
if: inputs.go
70+
run: make test-go
71+
- name: Test Node.js binding
72+
if: inputs.nodejs
73+
run: make test-nodejs
74+
- name: Test Perl binding
75+
if: inputs.perl
76+
run: make test-perl
77+
- name: Test Python binding
78+
if: inputs.python
79+
run: make test-python
80+
- name: Test Rust binding
81+
if: inputs.rust
82+
run: make test-rust
Lines changed: 4 additions & 6 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:
@@ -16,8 +15,7 @@ jobs:
1615
run:
1716
shell: bash
1817
steps:
19-
- uses: actions/checkout@v4
20-
- run: ${{ github.event_name == 'workflow_dispatch'
21-
&& 'make test-all'
22-
|| 'make test'
23-
}}
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
- name: Run core tests
21+
run: make test

0 commit comments

Comments
 (0)