Skip to content

Commit 0baf584

Browse files
committed
Use a gemfile for pronto action
1 parent b6985fd commit 0baf584

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/pronto.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ on:
44

55
jobs:
66
pronto:
7-
87
runs-on: ubuntu-latest
9-
108
steps:
9+
- run: echo BUNDLE_GEMFILE=gemfiles/pronto.gemfile > $GITHUB_ENV
1110
- name: Checkout code
1211
uses: actions/checkout@v2
1312
- run: git fetch --no-tags --prune --unshallow origin +refs/heads/*:refs/remotes/origin/*
1413
- name: Setup Ruby
1514
uses: ruby/setup-ruby@v1
1615
with:
1716
ruby-version: 3.4
18-
- name: Setup pronto
19-
run: gem install undercover pronto pronto-rubocop pronto-undercover
17+
bundler-cache: true
2018
- name: Run Pronto
21-
run: PRONTO_PULL_REQUEST_ID="${{ github.event.pull_request.number }}" PRONTO_GITHUB_ACCESS_TOKEN="${{ github.token }}" pronto run -f github_pr -c origin/${{ github.base_ref }}
19+
run: bundle exec pronto run -f github_pr -c origin/${{ github.base_ref }}
20+
env:
21+
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
22+
PRONTO_GITHUB_ACCESS_TOKEN: "${{ github.token }}"

gemfiles/pronto.gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem "pronto"
4+
gem "pronto-rubocop"
5+
gem "pronto-undercover"
6+
gem "base64"

0 commit comments

Comments
 (0)