Skip to content

Commit

Permalink
Fix CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-hill committed Dec 20, 2023
1 parent 4c6d726 commit a866dc9
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/main.yml
@@ -1,27 +1,28 @@
name: Ruby

---
name: CI
on:
push:
branches:
- master

- main
pull_request:

branches:
- main
jobs:
build:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
ruby:
- '2.7.8'

ruby: ['3.1', '3.2']
gemfile: ['Gemfile']
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: '2.4.12'
bundler-cache: true
- run: bundle exec rubocop
- run: bundle exec rspec

0 comments on commit a866dc9

Please sign in to comment.