diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1c7b656 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: 'CI' + +on: + push: + branches: + - 'master' + pull_request: + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + matrix: + lisp: + - sbcl-bin + - ccl-bin + + env: + LISP: ${{ matrix.lisp }} + + steps: + - uses: actions/checkout@v4 + - uses: 40ants/setup-lisp@v4 + with: + asdf-system: hsx + - uses: 40ants/run-tests@v2 + with: + asdf-system: hsx diff --git a/hsx-test.asd b/hsx-test.asd index 059ca5a..3498900 100644 --- a/hsx-test.asd +++ b/hsx-test.asd @@ -1,10 +1,16 @@ (defsystem "hsx-test" - :class :package-inferred-system + :defsystem-depends-on ("fiveam-asdf") + :class :package-inferred-fiveam-tester-system :pathname "tests" :depends-on ("fiveam" "hsx-test/element" "hsx-test/defhsx" "hsx-test/hsx" - "hsx-test/renderer" - "hsx-test/escaper") - :perform (test-op (op c) (symbol-call :fiveam :run-all-tests))) + "hsx-test/escaper" + "hsx-test/renderer") + :test-names ((#:element-test . #:hsx-test/element) + (#:defhsx-test . #:hsx-test/defhsx) + (#:hsx-test . #:hsx-test/hsx) + (#:escaper-test . #:hsx-test/escaper) + (#:renderer-test . #:hsx-test/renderer)) + :num-checks 37) diff --git a/qlfile b/qlfile index a16056b..9cf4ac2 100644 --- a/qlfile +++ b/qlfile @@ -1,3 +1,4 @@ ql fiveam +ql fiveam-asdf ql alexandria ql mstrings diff --git a/qlfile.lock b/qlfile.lock index 2cef429..28a298e 100644 --- a/qlfile.lock +++ b/qlfile.lock @@ -6,6 +6,10 @@ (:class qlot/source/ql:source-ql :initargs (:%version :latest) :version "ql-2023-10-21")) +("fiveam-asdf" . + (:class qlot/source/ql:source-ql + :initargs (:%version :latest) + :version "ql-2023-10-21")) ("alexandria" . (:class qlot/source/ql:source-ql :initargs (:%version :latest)