Skip to content

Commit 6b721af

Browse files
authored
Merge pull request #515 from x-b-e/switch_to_github_actions
test: Switch to GitHub actions
2 parents d3892cc + 876cf4a commit 6b721af

File tree

5 files changed

+78
-18
lines changed

5 files changed

+78
-18
lines changed

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
# Check for updates to GitHub Actions every weekday
7+
interval: "daily"
8+
- package-ecosystem: bundler
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
time: "11:00"
13+
open-pull-requests-limit: 10

.github/workflows/ci.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
3+
name: CI
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
test:
9+
name: "Testing"
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
# Recent Rubies and Rails
16+
- ruby-version: '3.2'
17+
- ruby-version: '3.1'
18+
- ruby-version: '3.0'
19+
- ruby-version: '2.7'
20+
- ruby-version: '2.6'
21+
- ruby-version: '2.6'
22+
- ruby-version: '2.7'
23+
- ruby-version: '2.6'
24+
# Old Rubies and Rails
25+
- ruby-version: '2.5'
26+
bundler: '1'
27+
- ruby-version: '2.4'
28+
bundler: '1'
29+
- ruby-version: '2.4'
30+
bundler: '1'
31+
# Failing with a stack trace in active support
32+
# - ruby-version: '2.4'
33+
# rails-version: '4.1'
34+
# bundler: '1'
35+
36+
continue-on-error: "${{ endsWith(matrix.ruby-version, 'head') }}"
37+
38+
env:
39+
CI: "1"
40+
41+
steps:
42+
- name: "Checkout Code"
43+
uses: "actions/checkout@v2"
44+
timeout-minutes: 5
45+
with:
46+
fetch-depth: 0
47+
48+
# - name: Install required libs
49+
# run: |
50+
# sudo apt-get -yqq install libsqlite3-dev
51+
52+
- name: "Build Ruby"
53+
uses: ruby/setup-ruby@v1
54+
with:
55+
ruby-version: "${{ matrix.ruby-version }}"
56+
bundler: "${{ matrix.bundler || 2 }}"
57+
bundler-cache: true
58+
# env:
59+
# RAILS_VERSION: ${{ matrix.rails-version }}
60+
61+
- name: "Run tests"
62+
run: |
63+
bundle exec rake
64+
# env:
65+
# RAILS_VERSION: ${{ matrix.rails-version }}

.travis.yml

-15
This file was deleted.

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
[![Build Status](https://travis-ci.org/zipmark/rspec_api_documentation.svg?branch=master)](https://travis-ci.org/zipmark/rspec_api_documentation)
21
[![Code Climate](https://codeclimate.com/github/zipmark/rspec_api_documentation/badges/gpa.svg)](https://codeclimate.com/github/zipmark/rspec_api_documentation)
32
[![Inline docs](https://inch-ci.org/github/zipmark/rspec_api_documentation.svg?branch=master)](https://inch-ci.org/github/zipmark/rspec_api_documentation)
43
[![Gem Version](https://badge.fury.io/rb/rspec_api_documentation.svg)](https://badge.fury.io/rb/rspec_api_documentation)

features/readme.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
[![Travis status](https://secure.travis-ci.org/zipmark/rspec_api_documentation.png)](https://secure.travis-ci.org/zipmark/rspec_api_documentation)
2-
31
http://github.com/zipmark/rspec_api_documentation
42

53
# RSpec API Doc Generator

0 commit comments

Comments
 (0)