Skip to content

Commit

Permalink
CI changes
Browse files Browse the repository at this point in the history
run CI for main and PR, not both, and cache bundle install, add some
newer ruby versions
  • Loading branch information
carlhoerberg committed Jul 24, 2024
1 parent c16092f commit 6efde94
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Ruby

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

jobs:
build:
strategy:
fail-fast: false
matrix:
ruby: [ 2.7, '3.0', 3.1, ruby-head ]
ruby: [ 2.7, 3.1, 3.2, 3.3, ruby-head ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: bundle install
bundler-cache: true
- run: bundle exec rake

0 comments on commit 6efde94

Please sign in to comment.