From dfbfd0b83a7a4ddc948b147a0b207a9ac2535b11 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Thu, 10 Feb 2022 17:42:27 -0500 Subject: [PATCH] Switch to GitHub Actions --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ .travis.yml | 11 ----------- README.md | 2 +- 3 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..92e76bf4 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,28 @@ +name: CI + +on: [push, pull_request] + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: + - '2.5' + - '2.6' + - '2.7' + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run tests + run: bundle exec rake + - name: Report code coverage + if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }} + continue-on-error: true + uses: paambaati/codeclimate-action@v3.0.0 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7725b59f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -language: ruby -rvm: -- 2.6.6 -- 2.7.2 -matrix: {} -fast_finish: true -cache: bundler -script: rake spec -install: pushd scripts && bundle install --jobs=3 --retry=3 && popd -dist: bionic diff --git a/README.md b/README.md index 70ca87b3..f1fc21b4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ManageIQ Appliance Build -[![Build Status](https://api.travis-ci.com/ManageIQ/manageiq-appliance-build.svg)](https://travis-ci.com/ManageIQ/manageiq-appliance-build) +[![CI](https://github.com/ManageIQ/manageiq-appliance-build/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-appliance-build/actions/workflows/ci.yaml) [![License](http://img.shields.io/badge/license-APACHE2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) # Introduction