-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (42 loc) · 1.3 KB
/
test.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
41
42
43
44
45
46
47
48
49
on: [workflow_call]
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 8
- name: Restore local Maven repository from cache
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles( 'project.clj' ) }}
restore-keys: |
${{ runner.os }}-maven-
- name: Generate proto files
run: lein protodeps generate
- name: Unit tests
env:
IP_STACK_ACCESS_KEY: ${{ secrets.IP_STACK_ACCESS_KEY }}
run: lein cloverage --html --lcov --junit
- name: Publish Unit Test Results
uses: EnricoMi/[email protected]
#if: always()
if: false
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files: "target/coverage/junit.xml"
- name: Coveralls
uses: coverallsapp/github-action@master
if: false
with:
path-to-lcov: "target/coverage/lcov.info"
github-token: ${{ secrets.GITHUB_TOKEN }}