Skip to content

Commit

Permalink
chore: update CI configuration
Browse files Browse the repository at this point in the history
* Add Ruby 3.1 and 3.2
* Merge into one workflow
* Run on PRs too
  • Loading branch information
jgraichen committed Aug 10, 2023
1 parent fae3f5f commit 9aefabf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/lint.yml

This file was deleted.

29 changes: 25 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
---
name: test
on: push

on:
- push
- pull_request

jobs:
rspec:
name: "${{ matrix.ruby }} / ${{ matrix.adapter }}"
name: "ruby-${{ matrix.ruby }}"
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
ruby:
- "3.2"
- "3.1"
- "3.0"
- "2.7"
- "2.6"
- "2.5"

steps:
- uses: actions/checkout@master
Expand All @@ -26,3 +30,20 @@ jobs:
BUNDLE_RETRY: 3

- run: bundle exec rspec --color

rubocop:
name: rubocop
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3

- name: Run rubocop
run: bundle exec rubocop --parallel --color

0 comments on commit 9aefabf

Please sign in to comment.