-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 994 Bytes
/
pronto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Pronto
on: [pull_request]
permissions:
checks: write
contents: read
pull-requests: write
statuses: write
jobs:
pronto:
runs-on: ubuntu-latest
env:
MAKE: "make --jobs 4"
steps:
- name: Checkout code
uses: actions/checkout@v3
# Set the depth to 100 and hope this won't fail for branches with a lot of little commits
- run: |
git fetch --no-tags --prune --depth=100 origin +refs/heads/*:refs/remotes/origin/*
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7.2"
bundler-cache: true
- name: Setup pronto
run: gem install pronto pronto-rubocop
- name: Run Pronto
run: bundle exec 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 }}"
BUNDLE_PATH: "vendor/bundle"