Skip to content

Commit

Permalink
Merge pull request #37 from voxpupuli/gha
Browse files Browse the repository at this point in the history
Convert from Travis to Github Actions
  • Loading branch information
ekohl authored Dec 14, 2020
2 parents 662fd54 + b9733ce commit 429ea7b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 23 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
create:
ref_type: tag

jobs:
release:
runs-on: ubuntu-latest
if: github.repository == 'voxpupuli/voxpupuli-test'
steps:
- uses: actions/checkout@v2
- name: Install Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Build gem
run: gem build *.gemspec
- name: Publish gem
run: gem push *.gem
env:
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
- pull_request
- push

env:
BUNDLE_WITHOUT: release

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.4"
- "2.5"
- "2.6"
- "2.7"
steps:
- uses: actions/checkout@v2
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake spec
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

0 comments on commit 429ea7b

Please sign in to comment.