feat: add tests #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CL Tests | |
| on: | |
| push: | |
| branches: [ "main", "feature-tests" ] | |
| pull_request: | |
| branches: [ "main", "feature-tests" ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install SBCL | |
| run: sudo apt-get install -y sbcl | |
| - name: Install Quicklisp | |
| run: | | |
| curl -O https://beta.quicklisp.org/quicklisp.lisp | |
| sbcl --load quicklisp.lisp \ | |
| --eval '(quicklisp-quickstart:install)' \ | |
| --eval '(quit)' | |
| - name: Run Tests | |
| run: | | |
| sbcl --noinform --load "$HOME/quicklisp/setup.lisp" \ | |
| --eval "(ql:quickload :fiveam)" \ | |
| --load "unification.lsp" \ | |
| --load "tests.lsp" \ | |
| --eval "(if (tests:run-tests) (sb-ext:exit :code 0) (sb-ext:exit :code 1))" |