git.fiddlerwoaroof.com
Browse code

feat(ci): actually try to run the tests

Edward Langley authored on 30/03/2022 04:42:49
Showing 1 changed files
... ...
@@ -1,20 +1,47 @@
1 1
 name: CI
2 2
 
3
+# Controls when the workflow will run
3 4
 on:
5
+  # Triggers the workflow on push or pull request events but only for the master branch
4 6
   push:
5 7
     branches: [ master ]
6 8
   pull_request:
7 9
     branches: [ master ]
8 10
 
11
+  # Allows you to run this workflow manually from the Actions tab
12
+  workflow_dispatch:
13
+
14
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
9 15
 jobs:
16
+  # This workflow contains a single job called "build"
10 17
   build:
11
-    runs-on: ubuntu-20.04
18
+    # The type of runner that the job will run on
19
+    runs-on: ubuntu-latest
12 20
 
13 21
     steps:
22
+      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
14 23
       - uses: actions/checkout@v2
15
-      - name: Docker Setup QEMU
16
-        uses: docker/setup-qemu-action@v1.0.1
24
+
25
+      - uses: cachix/install-nix-action@v15
17 26
         with:
18
-          platforms: arm64
19
-      - name: Run a one-line script
20
-        run: make test
27
+          extra_nix_config: |
28
+            access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
29
+
30
+      # Runs a set of commands using the runners shell
31
+      - name: setup deps
32
+        run: |
33
+          nix-env -i sbcl
34
+          cd
35
+          wget 'https://beta.quicklisp.org/quicklisp.lisp'
36
+          sbcl --load quicklisp.lisp \
37
+               --eval '(ql-util:without-prompting (quicklisp-quickstart:install))' \
38
+               --quit
39
+
40
+      - name: run tests
41
+        run: |
42
+          cd "$GITHUB_WORKSPACE"
43
+          sbcl --load "$HOME/quicklisp/setup.lisp" \
44
+               --eval "(mapcar 'asdf:load-asd (directory \"*.asd\"))" \
45
+               --eval "(ql:quickload :data-lens/transducers/test)" \
46
+               --eval "(asdf:test-system :data-lens/transducers/test)" \
47
+               --quit