Add external command parameter to control overwriting not synchronize… #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: build | |
run: ./gradlew build | |
- name: show reports on failure | |
if: ${{ failure() }} | |
run: cat app/build/reports/* | |
upload-to-transifex: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' }} | |
needs: build | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v3 | |
- name: push sources to transifex | |
uses: transifex/cli-action@v2 | |
with: | |
token: ${{ secrets.TX_TOKEN }} | |
upload-to-coverity: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' }} | |
needs: build | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: download coverity tools | |
run: | | |
curl -Lf \ | |
-o cov-analysis-linux64.tar.gz \ | |
--form project=bfabiszewski/ulogger-android \ | |
--form token=$TOKEN \ | |
https://scan.coverity.com/download/linux64 | |
mkdir cov-analysis-linux64 | |
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
- name: build with cov-build | |
run: | | |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH | |
cov-build --dir cov-int ./gradlew -Dorg.gradle.jvmargs= --no-daemon assemble | |
- name: upload results to coverity-scan | |
run: | | |
tar czvf cov-int.tgz cov-int | |
curl -Lf \ | |
--form token=$TOKEN \ | |
--form [email protected] \ | |
--form [email protected] \ | |
--form version="`git describe --tags`" \ | |
--form description="ulogger-android `git describe --tags`" \ | |
"https://scan.coverity.com/builds?project=bfabiszewski/ulogger-android" | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |