From 48784bff63ccb4040b2b476e4627c1f8ac99f594 Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Tue, 2 Feb 2021 23:57:14 +0300 Subject: [PATCH] Custom tests runner. --- .github/actions/setup/action.yml | 32 ++++------- .github/actions/setup/run-tests.ros | 83 +++++++++++++++++++++++++++++ .github/workflows/install.yml | 6 +-- cl-info-test.asd | 19 ++++--- qlfile | 1 + qlfile.lock | 4 ++ t/core.lisp | 10 ++-- 7 files changed, 114 insertions(+), 41 deletions(-) create mode 100755 .github/actions/setup/run-tests.ros diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 8586ff9..f267a11 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -5,18 +5,14 @@ inputs: description: 'Jinja template for qlfile' required: false default: 'The Template' - lisp-system: + asdf-system: description: 'ASDF system to install and test' - required: false - default: '' + required: true run-tests: description: A command to run tests required: false - default: | - qlot exec ros --eval '(asdf:test-system :{{ lisp-system }})' --quit - - custom-code: - required: false + # default: | + # qlot exec ros --eval '(asdf:test-system :{{ lisp-system }})' --quit runs: @@ -78,22 +74,12 @@ runs: # (asdf:asdf-version)) # (format t "::endgroup::~%")) - - name: Run a custom Roswell Script - shell: ros -Q -- {0} "$@" + - name: Run Tests + shell: bash run: | - (progn - (ros:ensure-asdf) - #+quicklisp - (ql:quickload '() :silent t)) - - (defun main (args) - (declare (ignorable args)) - (format t "::group::Custom Roswell Script New 2~%") - (let ((custom-code "${{ inputs.custom-code | escape }}")) - (if (string= custom-code "") - (format t "No custom code~%") - (uiop:eval-input custom-code)) - (format t "::endgroup::~%"))) + ${{ github.action_path }}/run-tests.ros ${{ inputs.asdf-system }} <