Skip to content

Commit

Permalink
Merge pull request #5 from jcpsantiago/add-ci
Browse files Browse the repository at this point in the history
Add Github Actions CI
  • Loading branch information
jcpsantiago authored Jan 23, 2022
2 parents 118ee21 + dfb9764 commit d02a1c8
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run tests

on: [push]

jobs:

clojure:

strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Prepare java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'

- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.10.1.693

- name: Execute clojure code on Linux and MacOS
if: ${{ matrix.os != 'windows-latest' }}
run: clojure -X:test
shell: bash

- name: Execute clojure code on Windows
if: ${{ matrix.os == 'windows-latest' }}
run: clojure -X:test
shell: powershell
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![CI](https://github.com/jcpsantiago/bulgogi/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/jcpsantiago/bulgogi/actions/workflows/run-tests.yaml)

# bulgogi
Helper for ML feature preprocessing. Very tasty.

Expand Down
3 changes: 2 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
:aliases
{:test {:extra-paths ["test"]
:extra-deps {io.github.cognitect-labs/test-runner
{:git/tag "v0.5.0" :git/sha "b3fd0d2"}}
{:git/url "https://github.com/cognitect-labs/test-runner.git"
:git/tag "v0.5.0" :sha "48c3c67f98362ba1e20526db4eeb6996209c050a"}}
:main-opts ["-m" "cognitect.test-runner"]
:exec-fn cognitect.test-runner.api/test}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "1.1.128"}}
Expand Down
4 changes: 2 additions & 2 deletions test/jcpsantiago/bulgogi_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@


(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
(testing "will be gone soon :D"
(is (= 1 1))))

0 comments on commit d02a1c8

Please sign in to comment.