-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (37 loc) · 981 Bytes
/
pr_flow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: PR Flow
on:
pull_request:
branches: [ master ]
env:
TEST_REPORT_JUNIT_XML_OUTPUT_DIR: target/surefire-reports
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: Install dependencies
run: clojure -P
- name: Compile Java
run: clojure -T:build compile-java
- name: Coverage
run: clojure -M:coverage
- name: Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./target/coverage/codecov.json
- name: Unit tests in Clojure
run: clojure -M:test
- name: Run Java Tests
run: clojure -T:build java-test
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Unit Tests
path: target/surefire-reports/*.xml
reporter: java-junit