Skip to content

Commit 6e4376d

Browse files
committed
Switch to GitHub Actions for the CI
1 parent be97b7a commit 6e4376d

File tree

4 files changed

+49
-8
lines changed

4 files changed

+49
-8
lines changed
File renamed without changes.

.github/workflows/build.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "*/ci-check"
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
rake:
14+
name: ${{ matrix.combo.name }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
combo:
19+
- name: current-ruby
20+
ruby: 3.0
21+
- name: previous-ruby
22+
ruby: 2.7
23+
- name: older-ruby
24+
ruby: 2.6
25+
26+
runs-on: 'ubuntu-latest'
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.combo.ruby }}
32+
bundler-cache: false
33+
- run: bundle lock
34+
- uses: actions/cache@v2
35+
with:
36+
path: ./vendor/bundle
37+
key: ${{ runner.os }}-${{ matrix.combo.ruby }}-gems-${{ github.ref }}-${{ hashFiles('**/Gemfile.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-${{ matrix.combo.ruby }}-gems-${{ github.ref }}
40+
${{ runner.os }}-${{ matrix.combo.ruby }}-gems-master
41+
${{ runner.os }}-${{ matrix.combo.ruby }}-gems-
42+
- name: bundle install
43+
run: |
44+
bundle config path $PWD/vendor/bundle
45+
bundle install --jobs 4 --retry 3
46+
bundle clean
47+
- run: bundle exec rake

.travis.yml

-7
This file was deleted.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
Find records faster, add custom helpers, improve your console life by 100%.
66

7-
[![CircleCI](https://img.shields.io/circleci/build/github/nebulab/rails_console_toolkit/master?logo=circleci)](https://circleci.com/gh/nebulab/rails_console_toolkit)
7+
[![Build](https://github.com/nebulab/rails_console_toolkit/workflows/build/badge.svg)](https://github.com/nebulab/rails_console_toolkit/actions?query=workflow%3Abuild)
8+
89

910
## Installation
1011

0 commit comments

Comments
 (0)