Skip to content

Commit

Permalink
wip: test on pr flow
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Jul 18, 2024
1 parent 6d773c0 commit 0ae3ed7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/pr_flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: lein deps
run: clj -P
- name: Compile Java
run: lein javac
- name: Coverage
run: lein coverage
- name: Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./target/coverage/codecov.json
- name: Run Java Tests
run: lein pom && mvn test --batch-mode --fail-at-end
run: clj -T:build compile-java
#- name: Coverage
# run: lein coverage
#- name: Codecov
# uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./target/coverage/codecov.json
#- name: Run Java Tests
# run: lein pom && mvn test --batch-mode --fail-at-end
- name: Unit tests in Clojure
run: lein test
run: clj -M:test
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
Expand Down
7 changes: 4 additions & 3 deletions test/stencil/log_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns stencil.log-test
(:require [stencil.log :as log]
[clojure.test :refer [deftest testing]]))
(:require [stencil.log]
[clojure.test :refer [deftest testing is]]))

(deftest test-logs
(testing "Test log macros of various arities"
Expand All @@ -12,4 +12,5 @@
c [["message without params"]
["message with param: {}" 1]
["message with params: {} {}" 1 2]]]
(eval (list* x c)))))
(eval (list* x c))
(is true))))

0 comments on commit 0ae3ed7

Please sign in to comment.