update #642
Workflow file for this run
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: "CI: carma-streets-bridge" | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- "develop" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 # This action checks-out repository under $GITHUB_WORKSPACE, so our workflow can access it | |
- name: Set up Docker Buildx # This action checks-out repository under $GITHUB_WORKSPACE, so our workflow can access it | |
uses: docker/setup-buildx-action@v2 | |
- name: Build | |
uses: docker/build-push-action@v3 # GitHub Action to build and push Docker images with Buildx | |
with: | |
context: ./telematic_system/telematic_units/carma_street_bridge/ | |
file: ./telematic_system/telematic_units/carma_street_bridge/Dockerfile | |
sonar: | |
runs-on: ubuntu-latest | |
container: | |
image: usdotfhwastoldev/carma-base:develop | |
options: --user root | |
steps: | |
- uses: actions/checkout@v3 | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master # Using this GitHub Action, scan your code with SonarCloud to detects bugs, vulnerabilities and code smells in more than 20 programming languages! | |
with: | |
args: > | |
-Dsonar.projectKey=usdot-fhwa-stol_cda-telematics | |
-Dsonar.projectName=cda-telematics | |
-Dsonar.organization=usdot-fhwa-stol | |
-Dsonar.host.url=https://sonarcloud.io | |
-Dsonar.verbose=true | |
-Dsonar.java.binaries=. | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |