-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.11 KB
/
ci.yaml
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
46
name: Build
on: [push]
jobs:
cljs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache project dependencies
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-clojure-scljs-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-clojure-scljs
- name: Prepare Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Prepare node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install node dependencies
run: npm install
- name: Run shadow-cljs server
run: npm run server &
- name: Wait for shadow-cljs server
run: |
timeout 45 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9630/api)" != "200" ]]; do sleep 5; done' || false
- name: Run tests
run: npm test
- name: Create release bundle (unused at the moment)
run: npm run build