-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (37 loc) · 1.43 KB
/
coverity_scan.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
name: Coverity scan
on: [push, pull_request]
jobs:
coverity:
name: Run Coverity tests
if: contains(github.repository, 'open-eid/MOPP-Android') && contains(github.ref, 'coverity_scan')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup environment
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: |
cd ${{ github.workspace }}/app
echo -n "$GOOGLE_SERVICES_JSON" | base64 --decode > "google-services.json"
cd ${{ github.workspace }}
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: Build and send to Coverity
continue-on-error: true
run: |
export TRAVIS_BRANCH=${GITHUB_REF##*/}
wget https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh
chmod +x travisci_build_coverity_scan.sh
bash travisci_build_coverity_scan.sh
env:
COVERITY_SCAN_PROJECT_NAME: 'open-eid/MOPP-Android'
COVERITY_SCAN_NOTIFICATION_EMAIL: 'eid-teenusehaldus@ria.ee'
COVERITY_SCAN_BRANCH_PATTERN: 'coverity_scan'
COVERITY_SCAN_BUILD_COMMAND: './gradlew clean --no-daemon fetchAndPackageDefaultConfiguration assemble --debug'
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}