Create Danger SwiftLint/SwiftFormat GHA workflow

This commit is contained in:
Max Desiatov 2020-06-06 10:42:31 +01:00 committed by GitHub
parent a0c8654bb5
commit e13ec7711d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

22
.github/workflows/danger.yml vendored Normal file
View File

@ -0,0 +1,22 @@
# This is a basic workflow to help you get started with Actions
name: Danger
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
danger-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Danger Swift
uses: maxdesiatov/danger-swift@swiftlint-docker
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}