mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
I've brought the tests up to scratch, except for compounds im the parser, because I'm too damn tired to do that over SSH. It looks like collections are right-recursive, whixh was unintended but still works just fine. I've also added the '--verbose' flag to the repl to control the debugging output. Several obscure bugs have been fixed, and comments have been tweaked. Mustfail tests are still needed, but that's a low priority. See #142. Fixed #151
30 lines
1023 B
YAML
30 lines
1023 B
YAML
name: Standalone Tests
|
|
|
|
#trigger when these occur
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
#These tests are more stand-alone than the others
|
|
jobs:
|
|
run-test-cases:
|
|
continue-on-error: true
|
|
strategy:
|
|
matrix:
|
|
platforms:
|
|
- { os: ubuntu-latest, preinstall: sudo apt-get install gdb, gdb_enabled: true }
|
|
- { os: windows-latest, preinstall: , gdb_enabled: true }
|
|
- { os: macos-latest, preinstall: , gdb_enabled: false }
|
|
commands:
|
|
- { exec: make -C tests/standalone -k, gdb: false }
|
|
- { exec: make -C tests/standalone gdb -k, gdb: true }
|
|
|
|
runs-on: ${{ matrix.platforms.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Preinstall dependencies
|
|
if: (matrix.commands.gdb == true && matrix.platforms.gdb_enabled == false) != true
|
|
run: ${{ matrix.platforms.preinstall }}
|
|
- name: run the tests
|
|
if: (matrix.commands.gdb == true && matrix.platforms.gdb_enabled == false) != true
|
|
run: ${{ matrix.commands.exec }}
|