Skip to content

Commit

Permalink
Add an Actions workflow
Browse files Browse the repository at this point in the history
After 14 years with Travis it's time to move to Actions.
  • Loading branch information
michaelklishin committed Feb 20, 2025
1 parent 6cb314c commit 643f0b5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 32 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version:
- "3.4.2"
- "3.3.7"
- "3.2.7"

services:
rabbitmq:
image: rabbitmq:4-management
ports:
- 15672:15672
- 5672:5672

steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install

- name: Configure RabbitMQ
run: BUNNY_RABBITMQCTL=DOCKER:${{job.services.rabbitmq.id}} BUNNY_RABBITMQ_PLUGINS=DOCKER:${{job.services.rabbitmq.id}} bin/ci/before_build.sh

- name: Run tests
run: bundle exec rspec -c
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

0 comments on commit 643f0b5

Please sign in to comment.