From fa22323fa8813e3d56567561b88313cbd54c5b8f Mon Sep 17 00:00:00 2001 From: Edward Langley Date: Tue, 29 Mar 2022 21:42:49 -0700 Subject: [PATCH] feat(ci): actually try to run the tests --- .github/workflows/test.yml | 39 ++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b9aca5..5052f73 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,20 +1,47 @@ name: CI +# Controls when the workflow will run on: + # Triggers the workflow on push or pull request events but only for the master branch push: branches: [ master ] pull_request: branches: [ master ] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: + # This workflow contains a single job called "build" build: - runs-on: ubuntu-20.04 + # The type of runner that the job will run on + runs-on: ubuntu-latest steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Docker Setup QEMU - uses: docker/setup-qemu-action@v1.0.1 + + - uses: cachix/install-nix-action@v15 with: - platforms: arm64 - - name: Run a one-line script - run: make test + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + + # Runs a set of commands using the runners shell + - name: setup deps + run: | + nix-env -i sbcl + cd + wget 'https://beta.quicklisp.org/quicklisp.lisp' + sbcl --load quicklisp.lisp \ + --eval '(ql-util:without-prompting (quicklisp-quickstart:install))' \ + --quit + + - name: run tests + run: | + cd "$GITHUB_WORKSPACE" + sbcl --load "$HOME/quicklisp/setup.lisp" \ + --eval "(mapcar 'asdf:load-asd (directory \"*.asd\"))" \ + --eval "(ql:quickload :data-lens/transducers/test)" \ + --eval "(asdf:test-system :data-lens/transducers/test)" \ + --quit