diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2c2a54a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: 'test' + +on: + push: + branches: + - 'main' + 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: ningle-fbr + - uses: 40ants/run-tests@v2 + with: + asdf-system: ningle-fbr diff --git a/ningle-fbr-test.asd b/ningle-fbr-test.asd new file mode 100644 index 0000000..32ff098 --- /dev/null +++ b/ningle-fbr-test.asd @@ -0,0 +1,7 @@ +(defsystem "ningle-fbr-test" + :defsystem-depends-on ("fiveam-asdf") + :class :package-inferred-fiveam-tester-system + :pathname "tests" + :depends-on () + :test-names () + :num-checks 0) diff --git a/ningle-fbr-tests.asd b/ningle-fbr-tests.asd deleted file mode 100644 index 8bdb5a1..0000000 --- a/ningle-fbr-tests.asd +++ /dev/null @@ -1,9 +0,0 @@ -(defsystem "ningle-fbr-tests" - :author "skyizwhite " - :license "MIT" - :class :package-inferred-system - :pathname "tests" - :depends-on ("rove" - "ningle-fbr-tests/main") - :perform (test-op (o c) - (symbol-call :rove '#:run c))) diff --git a/ningle-fbr.asd b/ningle-fbr.asd index 9b2737e..083f795 100644 --- a/ningle-fbr.asd +++ b/ningle-fbr.asd @@ -8,4 +8,4 @@ :class :package-inferred-system :pathname "src" :depends-on ("ningle-fbr/main") - :in-order-to ((test-op (test-op "ningle-fbr-tests")))) + :in-order-to ((test-op (test-op "ningle-fbr-test")))) diff --git a/qlfile b/qlfile index 087ffa1..567dbb8 100644 --- a/qlfile +++ b/qlfile @@ -1,3 +1,3 @@ +ql fiveam-asdf ql ningle ql cl-ppcre -ql rove diff --git a/qlfile.lock b/qlfile.lock index 5634b14..57bf0bf 100644 --- a/qlfile.lock +++ b/qlfile.lock @@ -2,6 +2,10 @@ (:class qlot/source/dist:source-dist :initargs (:distribution "https://beta.quicklisp.org/dist/quicklisp.txt" :%version :latest) :version "2023-10-21")) +("fiveam-asdf" . + (:class qlot/source/ql:source-ql + :initargs (:%version :latest) + :version "ql-2023-10-21")) ("ningle" . (:class qlot/source/ql:source-ql :initargs (:%version :latest) @@ -10,7 +14,3 @@ (:class qlot/source/ql:source-ql :initargs (:%version :latest) :version "ql-2023-10-21")) -("rove" . - (:class qlot/source/ql:source-ql - :initargs (:%version :latest) - :version "ql-2023-10-21")) diff --git a/tests/.keep b/tests/.keep new file mode 100644 index 0000000..e69de29 diff --git a/tests/main.lisp b/tests/main.lisp deleted file mode 100644 index 06f02eb..0000000 --- a/tests/main.lisp +++ /dev/null @@ -1,4 +0,0 @@ -(defpackage #:ningle-fbr-tests/main - (:use #:cl - #:rove)) -(in-package #:ningle-fbr-tests/main)