Skip to content

Commit 978f1f3

Browse files
committed
Add GitHub Actions test workflow
1 parent ef5426a commit 978f1f3

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v3
9+
10+
- name: Prepare java
11+
uses: actions/setup-java@v3
12+
with:
13+
distribution: 'zulu'
14+
java-version: '8'
15+
16+
- name: Install clojure tools
17+
uses: DeLaGuardo/[email protected]
18+
with:
19+
lein: 2.9.10
20+
21+
- name: Cache clojure dependencies
22+
uses: actions/cache@v3
23+
with:
24+
path: ~/.m2/repository
25+
key: cljdeps-${{ hashFiles('project.clj') }}
26+
restore-keys: cljdeps-
27+
28+
- name: Run tests
29+
run: lein test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# duct.compiler.cljs.shadow-cljs
1+
# Duct Shadow CLJS Compiler [![Build Status](https://github.com/duct-framework/compiler.cljs.shadow/actions/workflows/test.yml/badge.svg)](https://github.com/duct-framework/compiler.cljs.shadow/actions/workflows/test.yml)
22

33
A Clojure library designed to ... well, that part is up to you.
44

0 commit comments

Comments
 (0)