Skip to content

Commit

Permalink
combine all binding test into one (#398)
Browse files Browse the repository at this point in the history
* combine

* oops deleted files

* fix linux test

* trailing spaces

* update readmes + bump to v4.2.0
  • Loading branch information
ianfhunter authored Nov 29, 2022
1 parent 426869d commit a8e5215
Show file tree
Hide file tree
Showing 19 changed files with 243 additions and 314 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/test_OS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "Test: OS Support"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build_linux:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install -r reqs/requirements.txt
- name: make test
run: |
make all
./build/dice d20
build_win:

runs-on: windows-2022

steps:
- uses: Vampire/setup-wsl@v1
with:
distribution: Ubuntu-22.04
update: 'true'
additional-packages:
python3-dev
bison
flex
python3-pip
build-essential
libssl-dev
libffi-dev
python3.10-venv

- uses: actions/checkout@v3
- name: test
shell: wsl-bash {0}
run: |
make all
./build/dice d100
build_mac:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Build
run: make all
- name: Test
run: ./build/dice d20
19 changes: 0 additions & 19 deletions .github/workflows/test_binding_R.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/test_binding_cpp.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/test_binding_csharp.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/test_binding_go.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/test_binding_haskell.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/test_binding_java.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/test_binding_javascript.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/test_binding_julia.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/test_binding_perl.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/test_binding_ruby.yml

This file was deleted.

38 changes: 2 additions & 36 deletions .github/workflows/test_core.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Core Tests"
name: "Test: Functionality"

on:
push:
Expand All @@ -8,7 +8,7 @@ on:

jobs:

build_linux:
functionality_tests:

runs-on: ubuntu-latest

Expand All @@ -30,37 +30,3 @@ jobs:
make test USE_SECURE_RANDOM=1
- name: Lex/Yacc Fallback
run: make test LEX_FALLBACK=1 YACC_FALLBACK=1

build_win:

runs-on: windows-2022

steps:
- uses: Vampire/setup-wsl@v1
with:
distribution: Ubuntu-22.04
update: 'true'
additional-packages:
python3-dev
bison
flex
python3-pip
build-essential
libssl-dev
libffi-dev
python3.10-venv

- uses: actions/checkout@v3
- name: test
shell: wsl-bash {0}
run: |
make all
./build/dice d100
build_mac:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Build
run: make all
- name: Test
run: ./build/dice 20
Loading

0 comments on commit a8e5215

Please sign in to comment.