-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (35 loc) · 1000 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
jobs:
build:
name: Generate project
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tailwind: [tailwind, no-tailwind]
embedded-js: [embedded-js, no-embedded-js]
env:
SPIN_PROJECT_NAME: Demo
SPIN_CREATE_SWITCH: false
SPIN_AUTHOR_NAME: Jonh Doe
SPIN_INCLUDE_TAILWIND: ${{ matrix.tailwind == 'tailwind' }}
SPIN_INCLUDE_EMBEDDED_JS: ${{ matrix.embedded-js == 'embedded-js' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ocaml-base-compiler.4.11.2
uses: ocaml/setup-ocaml@master
with:
ocaml-compiler: ocaml-base-compiler.4.11.2
- run: opam install spin
- run: opam exec -- spin new . _generated -d -vv
- run: make test
working-directory: _generated