Switch to github actions

This commit is contained in:
Benjamin Neff 2021-06-29 01:27:45 +02:00
parent f221b04262
commit a2212d1b11
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
3 changed files with 35 additions and 22 deletions

35
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: CI
on:
push:
branches:
- develop
- main
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- 2.6
- 2.5
gemfile:
- Gemfile
- test/gemfiles/no-rails.Gemfile
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
BUNDLE_WITHOUT: development
BUNDLE_FROZEN: true
BUNDLE_DISABLE_SHARED_GEMS: true
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: test/scripts/ci.sh

View file

@ -1,22 +0,0 @@
language: ruby
rvm:
- 2.6.5
- 2.5.7
gemfile:
- Gemfile
- test/gemfiles/no-rails.Gemfile
sudo: false
cache:
bundler: true
branches:
only:
- 'master'
- 'develop'
before_install: gem install bundler -v 1.17.3
bundler_args: "--deployment --without development --jobs=3 --retry=3"
script: test/scripts/travis.sh