Skip to content

Commit aeacc2c

Browse files
authored
Merge pull request #5287 from rmosolgo/fix-pronto-action
Redo pronto action to work on forks
2 parents 5854ef1 + 43fd603 commit aeacc2c

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
- gemfile: gemfiles/rails_master.gemfile
5353
ruby: 3.3
5454
graphql_reject_numbers_followed_by_names: 1
55-
coverage: 1
5655
redis: 1
5756
- gemfile: gemfiles/rails_master.gemfile
5857
ruby: 3.4
@@ -79,13 +78,6 @@ jobs:
7978
bundler-cache: true
8079
- run: bundle exec rake compile
8180
- run: bundle exec rake test
82-
- run: git fetch --no-tags --prune --unshallow origin +refs/heads/*:refs/remotes/origin/*
83-
if: ${{ !!matrix.coverage }}
84-
- run: bundle exec pronto run -f github_pr -c origin/${{ github.base_ref }}
85-
if: ${{ !!matrix.coverage }}
86-
env:
87-
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
88-
PRONTO_GITHUB_ACCESS_TOKEN: "${{ github.token }}"
8981
javascript_test:
9082
runs-on: ubuntu-latest
9183
steps:

.github/workflows/pronto.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pronto
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
pronto:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
- run: git fetch --no-tags --prune --unshallow origin +refs/heads/*:refs/remotes/origin/*
14+
- name: Setup Ruby
15+
uses: ruby/setup-ruby@v1
16+
- name: Setup pronto
17+
run: gem install undercover pronto pronto-rubocop pronto-undercover
18+
- name: Run Pronto
19+
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 }}

graphql.gemspec

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ Gem::Specification.new do |s|
4444
s.add_development_dependency "simplecov"
4545
s.add_development_dependency "simplecov-lcov"
4646
s.add_development_dependency "undercover"
47-
s.add_development_dependency "pronto"
48-
s.add_development_dependency "pronto-undercover"
4947
# website stuff
5048
s.add_development_dependency "jekyll"
5149
s.add_development_dependency "jekyll-sass-converter", "~>2.2"

0 commit comments

Comments
 (0)