Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
reeganviljoen committed Aug 18, 2024
1 parent 16a542d commit db43bcd
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 27 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}

strategy:
fail-fast: false
matrix:
include:
# Ruby 3.2
- ruby_version: "3.2"
rails_version: "7.0"
- ruby_version: "3.2"
rails_version: "7.1"
- ruby_version: "3.2"
rails_version: "7.2"

# Ruby 3.3
- ruby_version: "3.3"
rails_version: "7.0"
- ruby_version: "3.3"
rails_version: "7.1"
- ruby_version: "3.3"
rails_version: "7.2"

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Build and test
run: |
bundle exec appraisal rails-${{ matrix.rails_version }} bundle
27 changes: 0 additions & 27 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit db43bcd

Please sign in to comment.