mirror of
https://github.com/fiddlerwoaroof/data-lens.git
synced 2025-11-08 18:26:32 +00:00
feat(ci): actually try to run the tests
This commit is contained in:
39
.github/workflows/test.yml
vendored
39
.github/workflows/test.yml
vendored
@ -1,20 +1,47 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
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:
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Docker Setup QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1.0.1
|
- uses: cachix/install-nix-action@v15
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
extra_nix_config: |
|
||||||
- name: Run a one-line script
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
run: make test
|
|
||||||
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user