1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Run tests using GitHub workflows (#2425)

travis-ci.org now displays "Please be aware travis-ci.org will be
shutting down in several weeks, with all accounts migrating to
travis-ci.com. Please stay tuned here for more information."

As GitHub actions is free for public repositories, whereas it's unclear
to what travis-ci.com will be, and the switching cost is low, it seems
going with workflows is the prudent thing to do.
This commit is contained in:
Paul McMahon 2020-12-29 14:48:49 +09:00 committed by GitHub
parent 6c51fd98f0
commit b1e468d96e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 18 deletions

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

@ -0,0 +1,29 @@
name: CI
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental == true }}
name: ruby-${{ matrix.ruby-version }}
strategy:
matrix:
ruby-version: [head, 3.0, 2.7, 2.6, 2.5]
include:
- ruby-version: head
experimental: true
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Runs tests
run: bundle exec rake
env:
test: true

View file

@ -1,18 +0,0 @@
language: ruby
dist: xenial
cache: bundler
rvm:
- ruby-head
- 3.0
- 2.7
- 2.6
- 2.5
os:
- linux
jobs:
fast_finish: true
allow_failures:
- rvm: ruby-head
env:
global:
- TEST=true