Skip to content

Commit

Permalink
Add a GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Nov 23, 2023
1 parent 7570869 commit edbbf89
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
me: Ruby CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
ruby-version:
- 3.2
- 3.1
- "3.0"
gemfile:
- gemfiles/rspec_3.3.gemfile
- gemfiles/rspec_3.4.gemfile
- gemfiles/rspec_3.5.gemfile
- gemfiles/rspec_3.6.gemfile
- gemfiles/rspec_3.7.gemfile

steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
gemfile: ${{ matrix.gemfile }}
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake

0 comments on commit edbbf89

Please sign in to comment.