Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run pronto on GitHub Actions without any reporting #403

Merged
merged 2 commits into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/pronto.yml
@@ -0,0 +1,20 @@
name: Pronto

on:
pull_request:
branches: [master]

jobs:
pronto:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
bundler-cache: true
- name: Run Pronto
run: bundle exec pronto run --exit-code -c origin/${{ github.base_ref }}
10 changes: 3 additions & 7 deletions .github/workflows/action.yml → .github/workflows/specs.yml
Expand Up @@ -22,6 +22,9 @@ jobs:
- ruby-version: "2.3" # Rugged uses the wrong openssl version on CI and segfaults (similar to https://github.com/libgit2/rugged/issues/718)
steps:
- uses: actions/checkout@v2
- name: Use specific gitlab gem version (if required)
if: matrix.ruby-version == '2.4'
run: echo "gem 'gitlab', '< 4.14.1'" >> Gemfile.local
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -34,10 +37,3 @@ jobs:
COVERAGE: true
with:
coverageCommand: bundle exec rspec
- if: matrix.ruby-version == '2.4' && github.event_name == 'pull_request'
name: Run pronto
run: |
git fetch -q origin ${{ github.context.pull_request.base.sha }}
PRONTO_PULL_REQUEST_ID=${{github.event.number}} \
PRONTO_GITHUB_ACCESS_TOKEN="${{ github.token }}" \
bundle exec pronto run -f github_status github_pr -c origin/${{ github.event.pull_request.base.ref }}
3 changes: 3 additions & 0 deletions Gemfile
@@ -1,3 +1,6 @@
source 'https://rubygems.org'

gemspec

local_gemfile = File.expand_path('Gemfile.local', __dir__)
eval_gemfile local_gemfile if File.exist?(local_gemfile)