Skip to content

Commit 84682a1

Browse files
authored
setup github actions (#42)
* setup github actions * gotta use CI * update readme * remove travis * cancel redudant builds for PRs * goo * foo * foo again * fix readme
1 parent 4127cc4 commit 84682a1

File tree

4 files changed

+39
-26
lines changed

4 files changed

+39
-26
lines changed

.github/workflows/main.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-16.04
12+
strategy:
13+
matrix:
14+
ruby:
15+
- '2.5'
16+
- '2.6'
17+
gemfile:
18+
- gemfiles/rails_5_0.gemfile
19+
- gemfiles/rails_5_1.gemfile
20+
- gemfiles/rails_5_2.gemfile
21+
- gemfiles/rails_6_0.gemfile
22+
- gemfiles/ruby.gemfile
23+
name: Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
24+
steps:
25+
- uses: technote-space/auto-cancel-redundant-job@v1
26+
if: github.event_name == 'pull_request'
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby }}
31+
- name: Build and test with Rake
32+
env:
33+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
34+
run: |
35+
gem install bundler
36+
bundle install --jobs 4 --retry 3
37+
bundle exec rake

.travis.yml

-24
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
WebValve
22
========
33

4-
[![Build Status](https://travis-ci.org/Betterment/webvalve.svg?branch=master)](https://travis-ci.org/Betterment/webvalve)
4+
![Build Status](https://github.com/actions/workflows/Main/badge.svg?branch=master)
55
[![Gem Status](https://img.shields.io/gem/v/webvalve.svg)](https://rubygems.org/gems/webvalve)
66

77
WebValve is a tool for defining and registering fake implementations of

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ end
77
Bundler::GemHelper.install_tasks
88

99
task(:default).clear
10-
if ENV['APPRAISAL_INITIALIZED'] || ENV['TRAVIS']
10+
if ENV['APPRAISAL_INITIALIZED'] || ENV['CI']
1111
require 'rspec/core'
1212
require 'rspec/core/rake_task'
1313
RSpec::Core::RakeTask.new(:spec)

0 commit comments

Comments
 (0)