Add CI. #7
Workflow file for this run
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
name: 'CI' | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'master' | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
lisp: | |
- sbcl-bin | |
env: | |
ON_CI_SERVER: 1 | |
QUICKLISP_ADD_TO_INIT_FILE: true | |
LISP: ${{ matrix.lisp }} | |
steps: | |
- uses: actions/checkout@v3 | |
# Install SBCL and Quicklisp | |
- name: Install SBCL | |
uses: 40ants/setup-lisp@v2 | |
with: | |
asdf-system: cl-info | |
# Install system dependencies | |
- name: Install SQLite | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y sqlite3 libsqlite3-dev | |
# Initialize Quicklisp and update dist | |
- name: Update Quicklisp dist | |
run: | | |
sbcl --non-interactive \ | |
--eval "(ql:update-all-dists :prompt nil)" | |
# Load the system to ensure all dependencies are downloaded | |
- name: Load system | |
run: | | |
sbcl --non-interactive --eval "(ql:quickload :loam :silent t)" | |
# Run the tests | |
- name: Run tests | |
run: | | |
sbcl --non-interactive \ | |
--eval "(asdf:test-system :loam)" |