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

Update CI workflow #1278

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 6 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,12 @@ jobs:
code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.0
- name: Gems cache
uses: actions/cache@v2
with:
path: ~/gems
key: gems-3.0.0-${{ hashFiles('*.gemspec', 'Gemfile') }}-${{ github.sha }}
restore-keys: |
gems-3.0.0-${{ hashFiles('*.gemspec', 'Gemfile') }}-
gems-3.0.0-
- name: Install dependencies
run: |
gem install bundler
bundle config path ~/gems
bundle install --jobs 4 --retry 3
bundler-cache: true
- name: Check code style
run: bundle exec rake rubocop
test:
Expand All @@ -44,26 +32,16 @@ jobs:
- "3.0"
- "3.1.0"
- "3.1"
- "3.2.0"
- "3.2"
- ruby-head
- jruby-9.3
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Gems cache
uses: actions/cache@v2
with:
path: ~/gems
key: gems-${{ matrix.ruby }}-${{ hashFiles('*.gemspec', 'Gemfile') }}-${{ github.sha }}
restore-keys: |
gems-${{ matrix.ruby }}-${{ hashFiles('*.gemspec', 'Gemfile') }}-
gems-${{ matrix.ruby }}-
- name: Install dependencies
run: |
gem install bundler
bundle config path ~/gems
bundle install --jobs 4 --retry 3
bundler-cache: true
- name: Run tests
run: bundle exec rake spec
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
inherit_gem:
prawn-dev: rubocop.yml

AllCops:
Exclude:
- 'vendor/bundle/**/*'

Lint/ConstantDefinitionInBlock:
Exclude:
- manual/text/formatted_callbacks.rb
Expand Down