Skip to content

Switch to GitHub Actions #3

Switch to GitHub Actions

Switch to GitHub Actions #3

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.5.3', '2.6.1']
services:
mysql:
image: mysql:5.6
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=5
mongo:
image: mongo:5
ports:
- 27017:27017
options: >-
--health-cmd=mongo
--health-interval=10s
--health-timeout=5s
--health-retries=5
steps:
- name: Set up packagecloud repository
run: curl -s https://packagecloud.io/install/repositories/michaelmior/coinor/script.deb.sh | sudo bash
- name: Install required packages
run: sudo apt update && sudo apt install coinor-cbc
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Test
run: |
sed -i '/^--tag/d' .rspec
bundle exec rspec