-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (48 loc) · 1.68 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
50
51
52
53
54
55
56
57
58
59
60
# Executes ClojureScript tests using Leiningen / Karma
name: Clojurescript Tests
on: ["workflow_dispatch", "pull_request"]
jobs:
test:
# Cancel any runs in progress for the same workflow and PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
id: checkout
uses: actions/[email protected]
- name: Cache Maven Dependencies
id: cache-maven
uses: actions/cache@v4
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-clj
- name: Cache npm dependencies
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node
- name: Install Clojure/ClojureScript Dependencies
id: install-clojure-deps
run: lein deps
- name: Install node.js Dependencies
id: install-node-deps
run: npm install
- name: Build Clojurescript
id: build-cljs
run: lein cljsbuild once test
- name: Run All Tests
id: run-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