Skip to content

Commit

Permalink
Disable cache, fix url name (#145)
Browse files Browse the repository at this point in the history
* Disable cache, fix url name

* Adds maven.test.skip

* SkipTests instead
  • Loading branch information
StrongestNumber9 authored Dec 9, 2024
1 parent e277f19 commit ed420b1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,20 @@ jobs:
run: bash add_headers_to_generated.sh

- name: Test run
run: mvn -Pbuild-nogenerate -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= verify
run: mvn -DskipTests -Pbuild-nogenerate -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= verify
env:
MARIADB_PORT: ${{ job.services.mariadb.ports[3306] }}
GITHUB_TOKEN: ${{ github.token }}

- name: Cache Coverity
id: cache_coverity
uses: actions/cache@v4
with:
path: ${{ env.COVERITY }}
key: coverity

- name: Download Coverity
if: steps.cache_coverity.outputs.cache-hit != 'true'
run: |
wget --quiet https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=${{ vars.COVERITY_PROJECT_URL_NAME }}" -O ${{ env.COVERITY }}.tgz
mkdir -p ${{ env.COVERITY }}
tar zxvf ${{ env.COVERITY }}.tgz -C ${{ env.COVERITY }} --strip-components 1
- name: Compile Coverity
run: |
${{ env.COVERITY }}/bin/cov-build --dir cov-int mvn -Pbuild-nogenerate -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= clean compile
${{ env.COVERITY }}/bin/cov-build --dir cov-int mvn -DskipTests -Pbuild-nogenerate -B -Drevision=${{ env.RELEASE_VERSION }} -Dsha1= -Dchangelist= clean compile
tar czvf ${{ vars.COVERITY_PROJECT_URL_NAME }}.tgz cov-int
- name: Install jq
Expand All @@ -104,7 +96,7 @@ jobs:
-d description="automated upload" \
-d email=${{ secrets.COVERITY_EMAIL }} \
-d token=${{ secrets.COVERITY_TOKEN }} \
-d file_name="'${{ vars.COVERITY_PROJECT_URL_NAME }}.tgz'" \
-d file_name="${{ vars.COVERITY_PROJECT_URL_NAME }}.tgz" \
https://scan.coverity.com/projects/${{ vars.COVERITY_PROJECT_URL_ID }}/builds/init \
| tee response
Expand Down

0 comments on commit ed420b1

Please sign in to comment.