-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (30 loc) · 859 Bytes
/
main.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
name: Test and Build
on:
push:
branches-ignore:
- master
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.1
with:
cli: latest
- name: Verify code base format
run: clojure -T:cljfmt check
- name: Run the clj tests
run: clojure -A:server/test
- name: Run the cljs tests
run: clojure -A:web/test-headless
- name: Build main.js
run: clojure -T:build js-bundle
- uses: EndBug/add-and-commit@v9
with:
add: "resources/public/main.js"
committer_name: GitHub Action
default_author: github_actions
message: "Compiled the cljs to the js bundle: main.js"