Skip to content

Commit 2b38548

Browse files
committed
Migrate tests from TravisCI to GitHub Actions
1 parent 30c5fb1 commit 2b38548

File tree

4 files changed

+28
-18
lines changed

4 files changed

+28
-18
lines changed

.github/workflows/tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run tests
2+
on:
3+
- push
4+
jobs:
5+
run-tests:
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
version:
10+
- 3.2.2
11+
- 3.1.4
12+
- 3.0.6
13+
- 2.7.8
14+
runs-on: ubuntu-latest
15+
env:
16+
CI: true
17+
BUNDLE_GEMFILE: ${{ github.workspace }}/graphql-latest.gemfile
18+
steps:
19+
- name: Checkout a commit
20+
uses: actions/checkout@v4
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.version }}
25+
bundler-cache: true
26+
- name: Run tests
27+
run: bundle exec rspec

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# BatchLoader
22

3-
[![Build Status](https://travis-ci.org/exAspArk/batch-loader.svg?branch=master)](https://travis-ci.org/exAspArk/batch-loader)
43
[![Coverage Status](https://coveralls.io/repos/github/exAspArk/batch-loader/badge.svg)](https://coveralls.io/github/exAspArk/batch-loader)
54
[![Code Climate](https://img.shields.io/codeclimate/maintainability/exAspArk/batch-loader.svg)](https://codeclimate.com/github/exAspArk/batch-loader/maintainability)
65
[![Downloads](https://img.shields.io/gem/dt/batch-loader.svg)](https://rubygems.org/gems/batch-loader)

graphql-latest.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ source "https://rubygems.org"
22

33
gem 'coveralls'
44

5-
gem "graphql", ">= 1.8"
5+
gem "graphql", "~> 1.8"
66

77
gemspec

0 commit comments

Comments
 (0)