diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3aee724 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: test + +on: [push] + +jobs: + + test: + runs-on: ubuntu-latest + + steps: + - name: Prepare runner + run: | + DEBIAN_FRONTEND=noninteractive sudo apt-get -qq update \ + && DEBIAN_FRONTEND=noninteractive sudo apt-get -qq --assume-yes install \ + sbcl + + - uses: actions/checkout@v4 + + - name: Install quicklisp + run: | + wget https://beta.quicklisp.org/quicklisp.lisp + sbcl --noinform \ + --load quicklisp.lisp \ + --eval '(quicklisp-quickstart:install)' \ + --quit + + - name: Run tests + run: | + sbcl --noinform --disable-debugger \ + --load "${HOME}/quicklisp/setup.lisp" \ + --eval '(asdf:initialize-source-registry (quote (:source-registry (:directory "'"$(pwd)"'") :ignore-inherited-configuration)))' \ + --eval '(ql:quickload "spell")'