forked from allenh1/rplidar_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e261822
commit 3582488
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,36 @@ | ||
name: tii-rplidar-ros2-coverity | ||
|
||
on: | ||
repository_dispatch: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- new_ros2 | ||
pull_request: | ||
branches: | ||
- new_ros2 | ||
|
||
jobs: | ||
coverity: | ||
runs-on: rplidar-ros2-self-hosted-coverity | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run coverity scan | ||
run: | ||
docker run --rm -e PROJECT_NAME=${{ github.event.repository.name }} -v "$(pwd):/main_ws/src" ghcr.io/tiiuae/fog-ros-baseimage-builder-coverity:main | ||
docker run --rm \ | ||
-e PROJECT_NAME=${{ github.event.repository.name }} \ | ||
-v "$(pwd):/main_ws/src" \ | ||
ghcr.io/tiiuae/fog-ros-baseimage-builder-coverity:sha-4da4f0d | ||
- name: Update summary | ||
run: | | ||
cat cov-analyze-result.txt >> $GITHUB_STEP_SUMMARY | ||
- name: Upload coverity scan results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverity-html-report-${{ github.event.repository.name }} | ||
path: coverity-output |