Skip to content

Commit

Permalink
Use GitHub Action for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Nov 30, 2020
1 parent f9cd3a4 commit c665266
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tests

on:
pull_request:
branches:
- master
paths-ignore:
- 'README.md'
push:
branches:
- master
paths-ignore:
- 'README.md'

jobs:
unit_tests:
name: Unit Tests
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
strategy:
fail-fast: false
matrix:
os:
- ubuntu
ruby:
- 2.6
gemfile:
- gemfiles/rails_5_1_5.gemfile
- gemfiles/rails_5_2_4_3.gemfile
- gemfiles/rails_6_0_3_4.gemfile
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: bundle exec rake spec

0 comments on commit c665266

Please sign in to comment.