Commit 9246967 1 parent 96b5d06 commit 9246967 Copy full SHA for 9246967
File tree 3 files changed +20
-11
lines changed
3 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches : [ master ]
6
6
7
+ env :
8
+ TEST_REPORT_JUNIT_XML_OUTPUT_DIR : target/surefire-reports
9
+
7
10
jobs :
8
11
build :
9
12
runs-on : ubuntu-latest
23
26
- name : Run Java Tests
24
27
run : lein pom && mvn test --batch-mode --fail-at-end
25
28
- name : Unit tests in Clojure
26
- run : lein junit
27
- - name : Publish Test Report
28
- if : ${{ always() }}
29
- uses : scacap/action-surefire-report@v1
29
+ run : lein test
30
+ - name : Test Report
31
+ uses : dorny/test-reporter@v1
32
+ if : success() || failure()
30
33
with :
31
- report_paths : ' target/surefire-reports/*.xml'
34
+ name : Unit Tests
35
+ path : target/surefire-reports/*.xml
36
+ reporter : java-junit
Original file line number Diff line number Diff line change 6
6
7
7
env :
8
8
STENCIL_TEST_VISUAL : true
9
+ TEST_REPORT_JUNIT_XML_OUTPUT_DIR : target/visual-reports
9
10
10
11
jobs :
11
12
build :
29
30
name : test-visual-images
30
31
path : |
31
32
/home/runner/work/_temp/**/*.png
32
- - name : Publish Test Report
33
- if : ${{ always() }}
34
- uses : scacap/action-surefire-report@v1
33
+ - name : Test Report
34
+ uses : dorny/test-reporter@v1
35
+ if : success() || failure()
36
+ with :
37
+ name : Visual Tests
38
+ path : target/visual-reports/*.xml
39
+ reporter : java-junit
Original file line number Diff line number Diff line change 12
12
:pom-addition ([:properties [" maven.compiler.source" " 8" ] [" maven.compiler.target" " 8" ]])
13
13
:pom-plugins [[org.apache.maven.plugins/maven-surefire-plugin " 2.20" ]]
14
14
:main io.github.erdos.stencil.Main
15
- :aliases {" junit" [" with-profile" " +test" " test-out" " junit" " target/surefire-reports/clojure.xml" ]
16
- " coverage" [" with-profile" " +ci" " cloverage" " --codecov"
15
+ :aliases {" coverage" [" with-profile" " +ci" " cloverage" " --codecov"
17
16
" --exclude-call" " clojure.core/assert"
18
17
" --exclude-call" " stencil.util/trace"
19
18
" --exclude-call" " stencil.util/fail"
38
37
:dependencies [[junit/junit " 4.13.2" ]
39
38
[org.xmlunit/xmlunit-core " 2.5.1" ]
40
39
[hiccup " 1.0.5" ]]
41
- :plugins [[lein-test-out " 0.3.1 " ]]
40
+ :plugins [[lein-test-report-junit-xml " 0.2.0 " ]]
42
41
:resource-paths [" test-resources" ]
43
42
:test-paths [" java-test" ]
44
43
:injections [(require 'stencil.spec)
You can’t perform that action at this time.
0 commit comments