diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83d7433c1..95062d911 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: CI -on: [push] +on: + push: + branches: + - '*' + jobs: test: runs-on: ubuntu-latest @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..9594a1081 --- /dev/null +++ b/.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 diff --git a/README.rdoc b/README.rdoc index 3e3111fb1..5f9ec6189 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,8 +1,8 @@ == Annotate (aka AnnotateModels) +{} {Gem Version}[http://badge.fury.io/rb/annotate] {}[https://rubygems.org/gems/annotate] -{}[https://travis-ci.org/ctran/annotate_models] {}[https://coveralls.io/r/ctran/annotate_models?branch=develop] {}[https://codeclimate.com/github/ctran/annotate_models] {Inline docs}[http://inch-ci.org/github/ctran/annotate_models]