Skip to content

Commit

Permalink
ci: upgrade github actions sonarqube content
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Feb 28, 2022
1 parent 3f87913 commit 5573b41
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: sonarqube

on:
workflow_run:
workflows:
- lint-code
types:
- completed
branches:
- develop
- main

tags:
- '[0-9]+.[0-9]+.[0-9]+'
# https://semver.org/ proper release tags, more or less
- 'v[0-9]+.[0-9]+.[0-9]+'
# prerelease tags, more or less
- 'v[0-9]+.[0-9]+.[0-9]+-*'

env:
SONAR_HOST_URL: '${{ secrets.SONAR_HOST_URL }}'
SONAR_LOGIN: '${{ secrets.SONAR_LOGIN }}'

jobs:
sonar-scan:
runs-on: ubuntu-20.04

steps:
- name: Check out a copy of the repo
if: ${{ !env.ACT }}
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Install Task
uses: arduino/setup-task@v1

- name: Scan Sonar
if: ${{ !env.ACT }}
run: task sonar:scan

0 comments on commit 5573b41

Please sign in to comment.