Try running rubocop via pronto in gh actions

This commit is contained in:
Michael Ball 2021-02-24 02:50:29 -08:00
parent 7e5889545e
commit bdc4c45427
2 changed files with 30 additions and 0 deletions

22
.github/workflows/pronto.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Pronto
on: [pull_request]
jobs:
pronto:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: |
git fetch --no-tags --prune --depth=10 origin +refs/heads/*:refs/remotes/origin/*
- name: Setup Ruby
uses: ruby/setup-ruby@v1
- name: Setup pronto
run: gem install pronto pronto-rubocop
- name: Run Pronto
run: pronto run -f github_status github_pr -c origin/${{ github.base_ref }}
env:
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
PRONTO_GITHUB_ACCESS_TOKEN: "${{ github.token }}"