Skip to content

Commit

Permalink
ci: update github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiosantana committed Jul 13, 2024
1 parent c577b0f commit 220c876
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
name: Ruby
name: Run tests

on:
push:
branches:
- main

pull_request:
on: [push, pull_request]

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

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
- uses: actions/checkout@v3

- name: Set up Ruby 3.3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.3

- name: Install dependencies
run: bundle install

- name: Run tests
run: bundle exec rake

0 comments on commit 220c876

Please sign in to comment.