feat(tests): initial setup for tests #1
This file contains 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
### Adapted from: https://github.com/neil-lindquist/CI-Utils/blob/master/config-examples/.github/workflows/ci.yml | |
name: CI | |
# Github Actions allows for running jobs on a wide variety of events | |
on: | |
push: # Commits pushed to Github | |
pull_request: # Pull request is update | |
workflow_dispatch: # Manually dispatched from Github's UI | |
jobs: | |
test: | |
name: "sbcl on ubuntu" | |
runs-on: ubuntu-latest | |
steps: | |
# This action checks out our code in the working directory | |
- uses: actions/checkout@v2 | |
# setup-lisp requires an env variable to be set, not matrix.lisp | |
- name: Set LISP env var | |
run: echo "LISP=sbcl-bin" >> $GITHUB_ENV | |
# This action installs roswell and a few other utilities such as qlot | |
- uses: 40ants/setup-lisp@v2 | |
# These steps run our tests | |
# Windows needs to be run with the msys2 shell due to how roswell is installed | |
- name: Run tests | |
shell: bash | |
run: | | |
# Install the roswell script for the test library | |
ros install neil-lindquist/ci-utils # for run-fiveam | |
#ros install prove # for run-prove: | |
#ros install rove # for [run-] rove | |
# Run the tests | |
run-fiveam -e t -l homestead/tests :homestead-tests |