-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #515 from x-b-e/switch_to_github_actions
test: Switch to GitHub actions
- Loading branch information
Showing
5 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
time: "11:00" | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|
||
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 | ||
|
||
- 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 }} | ||
|
||
- name: "Run tests" | ||
run: | | ||
bundle exec rake | ||
# env: | ||
# RAILS_VERSION: ${{ matrix.rails-version }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters