forked from duckduckgo/Android
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.49 KB
/
privacy.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
50
51
52
53
54
55
56
57
58
name: Privacy Tests
on:
schedule:
- cron: '0 3 * * *' # run at 3 AM UTC
workflow_dispatch:
jobs:
privacy_tests:
name: Privacy Tests
runs-on: ubuntu-latest
steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
- name: Decode secret
env:
FLANK: ${{ secrets.FLANK }}
run: echo $FLANK > flank.json
- name: Build
run: ./gradlew androidTestsBuild
- name: Run Privacy Tests
run: ./gradlew runFlankPrivacyTests
- name: Bundle the Android CI checks report
if: always()
run: find . -type d -name 'fladleResults' | zip -@ -r android-checks-report.zip
- name: Upload the Android CI checks report
if: always()
uses: actions/upload-artifact@v2
with:
name: android-checks-report
path: android-checks-report.zip