Skip to content

Commit

Permalink
Merge pull request #9 from davidwessman/github-actions
Browse files Browse the repository at this point in the history
Setup github actions
  • Loading branch information
aespinosa authored Feb 12, 2024
2 parents c1d544b + b528cfc commit 298d3d0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Main
on:
push:
workflow_dispatch:

jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Generate lockfile
run: bundle lock

- name: Bundle
run: bundle check || bundle install

- name: Run tests
run: bundle exec rake test

0 comments on commit 298d3d0

Please sign in to comment.