From dd36a368ea13d5e6a4c2c1c618c783ada965f88e Mon Sep 17 00:00:00 2001 From: Nicolas Buero Date: Wed, 16 Aug 2023 18:23:34 -0300 Subject: [PATCH 1/2] Remove Travis CI --- .travis.yml | 9 --------- README.md | 1 - 2 files changed, 10 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6f17a8a2..00000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: ruby -rvm: - - 2.4 - - 2.5 - - 2.6 - - 2.7 -before_script: - - rake jira:generate_public_cert -script: bundle exec rake spec diff --git a/README.md b/README.md index eb55f720..b504e216 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # JIRA API Gem [![Code Climate](https://codeclimate.com/github/sumoheavy/jira-ruby.svg)](https://codeclimate.com/github/sumoheavy/jira-ruby) -[![Build Status](https://travis-ci.org/sumoheavy/jira-ruby.svg?branch=master)](https://travis-ci.org/sumoheavy/jira-ruby) This gem provides access to the Atlassian JIRA REST API. From fa90f538fb59e492a0108c708c73b979fbf09595 Mon Sep 17 00:00:00 2001 From: Nicolas Buero Date: Wed, 16 Aug 2023 18:24:00 -0300 Subject: [PATCH 2/2] Add Github Actions CI with newer ruby versions and updated README --- .github/workflows/CI.yml | 31 +++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..76ff2fc2 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,31 @@ +name: Ruby + +on: [push] + +jobs: + test: + name: CI-tests + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: + - '3.1' + - '3.0' + - '2.7' + - '2.6' + - '2.5' + - '2.4' + steps: + - uses: actions/checkout@v3 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run tests + run: | + bundle exec rake jira:generate_public_cert + bundle exec rake spec diff --git a/README.md b/README.md index b504e216..9fa261be 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # JIRA API Gem [![Code Climate](https://codeclimate.com/github/sumoheavy/jira-ruby.svg)](https://codeclimate.com/github/sumoheavy/jira-ruby) +[![Build Status](https://github.com/sumoheavy/jira-ruby/actions/workflows/CI.yml/badge.svg)](https://github.com/sumoheavy/jira-ruby/actions/workflows/CI.yml) This gem provides access to the Atlassian JIRA REST API.