-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (38 loc) · 1.32 KB
/
clojurescript.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
46
47
48
49
name: Clojurescript Tests
on: ["push", "workflow_dispatch", "pull_request"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4.1.7
- name: Cache maven dependencies
uses: actions/cache@v4
env:
cache-name: cache-maven
with:
path: ~/.m2
save-always: true
key: ${{ runner.os }}-${{ env.cache-name }}-clj-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-clj
- name: Cache npm dependencies
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
path: ~/.npm
save-always: true
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node
- name: Install Clojure/ClojureScript dependencies
run: lein deps
- name: Install node.js dependencies
run: npm install
- name: Build Clojurescript
run: lein cljsbuild once test
- name: Run all tests
run: lein doo once
# This file was automatically copied and populated by rebroadcast
# Do not edit this file directly, instead modify the source at https://github.com/Wall-Brew-Co/rebroadcast/blob/master/sources/github-actions/workflows/clojurescript.yml