-
-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (25 loc) · 1.18 KB
/
ci.yml
File metadata and controls
28 lines (25 loc) · 1.18 KB
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
name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install maven
run: sudo apt install maven
- name: Download the Java library and protobuf jar
run: wget http://replomancer.net/OpenMined/libdifferentialprivacy-1.0.jar http://replomancer.net/OpenMined/libsummary-proto-speed.jar
- name: Install the Java library to local Maven repo
run: mvn install:install-file -Dfile=libdifferentialprivacy-1.0.jar -DgroupId=com.google.privacy.differentialprivacy -DartifactId=libdifferentialprivacy -Dversion=1.0 -Dpackaging=jar
- name: Install the protobuf jar to local Maven repo
run: mvn install:install-file -Dfile=libsummary-proto-speed.jar -DgroupId=com.google.differentialprivacy -DartifactId=libsummary-proto-speed -Dversion=1.0 -Dpackaging=jar
- name: Install remaining dependencies
run: lein deps
- name: Check formatting
run: lein cljfmt check
- name: Run tests
run: lein test
- name: Generate coverage report
run: lein cloverage --codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1