Skip to content

Commit 4e05d49

Browse files
committed
add codecov to workflow
1 parent bb20069 commit 4e05d49

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/main.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,50 @@ jobs:
4242
4343
- name: 🧪 Run tests
4444
run: bin/kaocha
45+
46+
Codecov:
47+
runs-on: ${{matrix.sys.os}}
48+
49+
strategy:
50+
matrix:
51+
sys:
52+
# - { os: macos-latest, shell: bash }
53+
- { os: ubuntu-latest, shell: bash }
54+
# - { os: windows-latest, shell: powershell }
55+
56+
defaults:
57+
run:
58+
shell: ${{matrix.sys.shell}}
59+
60+
steps:
61+
- uses: actions/checkout@v2
62+
63+
- name: 🔧 Install java
64+
uses: actions/setup-java@v1
65+
with:
66+
java-version: '25'
67+
68+
- name: 🔧 Install clojure
69+
uses: DeLaGuardo/setup-clojure@master
70+
with:
71+
cli: '1.12.3.1577'
72+
73+
- name: 🗝 maven cache
74+
uses: actions/cache@v4
75+
with:
76+
path: |
77+
~/.m2
78+
~/.gitlibs
79+
key: ${{ runner.os }}-maven-${{ github.sha }}
80+
restore-keys: |
81+
${{ runner.os }}-maven-
82+
83+
- name: 🧪 Generate codecov
84+
run: bin/kaocha --plugin cloverage --codecov
85+
86+
- name: Upload to codecov
87+
uses: codecov/codecov-action@v5
88+
with:
89+
name: codecov-report
90+
files: target/coverage/codecov.json
91+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)