Skip to content

Commit e61a669

Browse files
committed
build: add github actions CI
Adds some CI to the repository via Github actions
1 parent ebaed03 commit e61a669

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
build-clj:
14+
# The type of runner that the job will run on
15+
runs-on: ubuntu-latest
16+
17+
# Steps represent a sequence of tasks that will be executed as part of the job
18+
steps:
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20+
- uses: actions/checkout@v2
21+
- name: Setup Java
22+
uses: actions/[email protected]
23+
with:
24+
java-version: 15
25+
- name: Setup Clojure
26+
uses: DeLaGuardo/[email protected]
27+
with:
28+
tools-deps: latest
29+
- name: Cache dependencies
30+
uses: actions/cache@v2
31+
env:
32+
cache-name: cache-clj
33+
with:
34+
path: ~/.m2
35+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps.edn') }}
36+
restore-keys: |
37+
${{ runner.os }}-build-${{ env.cache-name }}-
38+
- name: Run Tests
39+
run: clojure -M:test

Readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Systemic
2+
[![Build Status](https://img.shields.io/github/workflow/status/teknql/systemic/CI.svg)](https://github.com/teknql/systemic/actions)
23
[![Clojars Project](https://img.shields.io/clojars/v/teknql/systemic.svg)](https://clojars.org/teknql/systemic)
34
[![cljdoc badge](https://cljdoc.org/badge/teknql/systemic)](https://cljdoc.org/d/teknql/systemic/CURRENT)
45

@@ -170,7 +171,7 @@ the development experience.
170171
:system-stop "Error during stop"))
171172
(= 'example/*socket* system) ;; => true
172173
(println "Original exception"
173-
cause) ;;
174+
cause) ;;
174175
)))
175176

176177
```

0 commit comments

Comments
 (0)