Skip to content

Commit

Permalink
Use Github acttions to publish to rubygem
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran committed Sep 27, 2019
1 parent 8b2cd33 commit 481aa36
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
@@ -1,5 +1,9 @@
name: CI
on: [push]
on:
push:
branches:
- '*'

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -12,17 +16,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup System
run: |
sudo apt-get install libsqlite3-dev

- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: Bundle
run: |
gem update --system
gem update bundler
bundle install --jobs 4 --retry 3
- name: Test
run: bundle exec rubocop && bundle exec rspec
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,27 @@
name: CI
on:
push:
tags:
- 'release/v*'

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x

- name: Bundle
run: |
gem update --system
gem update bundler
bundle install --jobs 4 --retry 3
- name: Publish
run: bundle exec rubocop && bundle exec rspec
2 changes: 1 addition & 1 deletion README.rdoc
@@ -1,8 +1,8 @@
== Annotate (aka AnnotateModels)

{<img src="https://github.com/ctran/annotate_models/workflows/ci/badge.svg" />}
{<img src="https://badge.fury.io/rb/annotate.svg" alt="Gem Version" />}[http://badge.fury.io/rb/annotate]
{<img src="https://img.shields.io/gem/dt/annotate.svg?style=flat" />}[https://rubygems.org/gems/annotate]
{<img src="https://travis-ci.org/ctran/annotate_models.svg?branch=develop" />}[https://travis-ci.org/ctran/annotate_models]
{<img src="https://coveralls.io/repos/ctran/annotate_models/badge.svg?branch=develop" />}[https://coveralls.io/r/ctran/annotate_models?branch=develop]
{<img src="https://codeclimate.com/github/ctran/annotate_models/badges/gpa.svg" />}[https://codeclimate.com/github/ctran/annotate_models]
{<img src="http://inch-ci.org/github/ctran/annotate_models.svg?branch=develop" alt="Inline docs" />}[http://inch-ci.org/github/ctran/annotate_models]
Expand Down

0 comments on commit 481aa36

Please sign in to comment.