tomaae.homeassistant-mikrot.../.github/workflows/ci.yml
2020-04-12 08:45:50 +02:00

32 lines
667 B
YAML

name: CI
on:
push:
branches:
- dev
- master
pull_request:
branches:
- dev
- master
jobs:
black:
name: Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Black Code Format Check
uses: lgeiger/black-action@master
with:
args: ". --check --fast --diff"
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: SonarCloud Code Analysis
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}