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 CI on GitHub Actions #397

Merged
merged 5 commits into from
Feb 18, 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
44 changes: 44 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Specs

on:
push:
branches: [master]
pull_request:
branches: [master]
pull_request_target:

jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby-version:
- "2.3"
- "2.4"
- "2.5"
- "2.6"
- "2.7"
- "3.0"
ashkulz marked this conversation as resolved.
Show resolved Hide resolved
exclude:
- 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: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@7bcf9e73c0ee77d178e72c0ec69f1a99c1afc1f3 # v2.7.5
env:
CC_TEST_REPORTER_ID: 3d676246ffa66d3fdef6253a9870431b1a2da04e9ecb25486c08a38823c37b6a
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 }}
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 2.3
TargetRubyVersion: 2.4

Documentation:
Enabled: false
Expand Down
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion pronto.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ Gem::Specification.new do |s|
s.add_development_dependency('rspec-its', '~> 1.2')
s.add_development_dependency('rspec-expectations', '~> 3.4')
s.add_development_dependency('rubocop', '~> 0.58')
s.add_development_dependency('simplecov', '~> 0.14')
s.add_development_dependency('simplecov', '~> 0.17', '!= 0.18.0', '!= 0.18.1', '!= 0.18.2', '!= 0.18.3', '!= 0.18.4',
'!= 0.18.5', '!= 0.19.0', '!= 0.19.1') # see https://docs.codeclimate.com/docs/configuring-test-coverage
ashkulz marked this conversation as resolved.
Show resolved Hide resolved
end