Skip to content

Commit

Permalink
Merge pull request #25 from rubocop/change-ci-configuration
Browse files Browse the repository at this point in the history
Change CI configuration
  • Loading branch information
bquorning committed Apr 6, 2023
2 parents 04d1deb + f7a194d commit b2949ff
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 20 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ci.yml
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
test:
Expand All @@ -15,12 +19,12 @@ jobs:
env:
BUNDLE_GEMFILE: "gemfiles/rubocop_${{ matrix.rubocop_version }}.gemfile"
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # 'bundle install' and cache gems
ruby-version: ${{ matrix.ruby }}
bundler: 2.3.26
- name: Run tests
run: bundle exec rspec
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # 'bundle install' and cache gems
ruby-version: ${{ matrix.ruby }}
bundler: 2.3.26
- name: Run tests
run: bundle exec rspec
24 changes: 14 additions & 10 deletions .github/workflows/lint.yml
@@ -1,6 +1,10 @@
name: Lint
name: Lint

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
lint:
Expand All @@ -9,11 +13,11 @@ jobs:
name: Rubocop

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # 'bundle install' and cache gems
ruby-version: "2.7"
- name: Run Rubocop
run: bundle exec rubocop
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # 'bundle install' and cache gems
ruby-version: "2.7"
- name: Run Rubocop
run: bundle exec rubocop

0 comments on commit b2949ff

Please sign in to comment.