Skip to content

Commit

Permalink
CI -> Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Sep 2, 2019
1 parent 08f8d19 commit bfa9db8
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 93 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Puma

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
name: Ruby ${{ matrix.ruby }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-16.04', 'ubuntu-18.04', 'macos', 'windows-latest' ]
ruby: [ '2.3.x', '2.4.x', '2.5.x', '2.6.x' ]
exclude:
- os: ubuntu-16.04
ruby: 2.4.x
- os: ubuntu-16.04
ruby: 2.5.x
- os: ubuntu-16.04
ruby: 2.6.x
- os: ubuntu-18.04
ruby: 2.3.x
- os: macos
ruby: 2.3.x
- os: windows-latest
ruby: 2.3.x
steps:
- name: macOS install ragel
if: matrix.os == 'macos'
run: |
brew install ragel
- name: repo checkout
uses: actions/checkout@v1
with:
fetch-depth: 10
- name: load ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

# Windows only
- name: Add MSYS2 paths
uses: MSP-Greg/msys2-action/add_paths@master
if: matrix.os == 'windows-latest'
- name: Update MSYS2
uses: MSP-Greg/msys2-action/update_msys2@master
if: matrix.os == 'windows-latest'
- name: Update OpenSSL
uses: MSP-Greg/msys2-action/update_openssl@master
if: matrix.os == 'windows-latest'

- name: RubyGems, Bundler Update
run: gem update --system --no-document --conservative
- name: bundle install
run: |
gem update --system --no-document --conservative
bundle install --jobs 4 --retry 3
- name: compile
run: bundle exec rake compile
- name: test
env:
CI: true
TESTOPTS: -v
run: bundle exec rake
73 changes: 0 additions & 73 deletions .travis.yml

This file was deleted.

20 changes: 0 additions & 20 deletions appveyor.yml

This file was deleted.

0 comments on commit bfa9db8

Please sign in to comment.