Skip to content

Commit

Permalink
setup ci github action workflow (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinburnette authored May 6, 2024
1 parent 17fd550 commit acd81ec
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
pull_request:
push:
branches: main

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.1', '3.2', '3.3']
gemfile:
- gemfiles/rspec_3.9.gemfile
- gemfiles/rspec_3.10.gemfile
- gemfiles/rspec_3.11.gemfile
- gemfiles/rspec_3.12.gemfile
- gemfiles/rspec_3.13.gemfile
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
run: bundle exec rake
16 changes: 16 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Linter

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Run Linter
run: bundle exec rubocop --parallel

0 comments on commit acd81ec

Please sign in to comment.