Skip to content

chore: add main.yml to github workflows #32

chore: add main.yml to github workflows

chore: add main.yml to github workflows #32

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- main
- develop
- feat/*
- bug/*
- chore/*
jobs:
SonarCloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.branch.name=${{ env.GITHUB_REF_NAME }}