Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Switch from Travis to Actions #240

Merged
merged 1 commit into from Nov 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,54 @@
name: Message Bus Tests

on:
pull_request:
push:
branches:
- master

env:
PGHOST: localhost
PGPORT: 5432
PGPASSWORD: postgres
PGUSER: postgres

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
services:
postgres:
image: postgres:9.4
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
ruby: ["2.7", "2.6", "2.5"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundler cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ruby }}-gems-
- name: Create Database
run: |
createdb message_bus_test
- name: Setup redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: '5.x'
- name: Setup gems
run: |
bundle config path vendor/bundle
bundle install --jobs 4
- name: Tests
run: bundle exec rake
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.