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

Replace Travis CI with Github workflow #1728

Merged
merged 1 commit into from
Oct 19, 2021
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
37 changes: 37 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
# The `github-workflow-test` can be used to test changes without making a PR
branches: [ master, github-workflow-test ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [ '2.5', '2.6', '2.7', '3.0']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Run tests
run: bundle exec rake

# Those are only run with the latest supported version
# Make sure to update the `if` when changing supported versions
- name: Profile Memory Allocation
if: matrix.ruby-version == '3.0'
run: bundle exec rake check:memory
- name: Interpreter Warnings Test
if: matrix.ruby-version == '3.0'
env:
RUBYOPT: '-w'
run: bundle exec rake check:specs
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.