-
Notifications
You must be signed in to change notification settings - Fork 363
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
test: Switch to GitHub actions #515
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every weekday | ||
interval: "daily" | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe you'll want weekly for this? |
||
time: "11:00" | ||
open-pull-requests-limit: 10 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
|
||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: "Testing" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# Recent Rubies and Rails | ||
- ruby-version: '3.2' | ||
- ruby-version: '3.1' | ||
- ruby-version: '3.0' | ||
- ruby-version: '2.7' | ||
- ruby-version: '2.6' | ||
- ruby-version: '2.6' | ||
- ruby-version: '2.7' | ||
- ruby-version: '2.6' | ||
# Old Rubies and Rails | ||
- ruby-version: '2.5' | ||
bundler: '1' | ||
- ruby-version: '2.4' | ||
bundler: '1' | ||
- ruby-version: '2.4' | ||
bundler: '1' | ||
# Failing with a stack trace in active support | ||
# - ruby-version: '2.4' | ||
# rails-version: '4.1' | ||
# bundler: '1' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. travis ci had
|
||
|
||
continue-on-error: "${{ endsWith(matrix.ruby-version, 'head') }}" | ||
|
||
env: | ||
CI: "1" | ||
|
||
steps: | ||
- name: "Checkout Code" | ||
uses: "actions/checkout@v2" | ||
timeout-minutes: 5 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# - name: Install required libs | ||
# run: | | ||
# sudo apt-get -yqq install libsqlite3-dev | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in case we need to install any dependencies, this is an easy pattern for doing that |
||
|
||
- name: "Build Ruby" | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "${{ matrix.ruby-version }}" | ||
bundler: "${{ matrix.bundler || 2 }}" | ||
bundler-cache: true | ||
# env: | ||
# RAILS_VERSION: ${{ matrix.rails-version }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in case we decide to install certain versions of active support, this is an easy pattern for doing that |
||
|
||
- name: "Run tests" | ||
run: | | ||
bundle exec rake | ||
# env: | ||
# RAILS_VERSION: ${{ matrix.rails-version }} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[![Build Status](https://travis-ci.org/zipmark/rspec_api_documentation.svg?branch=master)](https://travis-ci.org/zipmark/rspec_api_documentation) | ||
[![Code Climate](https://codeclimate.com/github/zipmark/rspec_api_documentation/badges/gpa.svg)](https://codeclimate.com/github/zipmark/rspec_api_documentation) | ||
[![Inline docs](https://inch-ci.org/github/zipmark/rspec_api_documentation.svg?branch=master)](https://inch-ci.org/github/zipmark/rspec_api_documentation) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. inch looks like it's dead |
||
[![Gem Version](https://badge.fury.io/rb/rspec_api_documentation.svg)](https://badge.fury.io/rb/rspec_api_documentation) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe you'll want weekly for this?