diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0061ef9..1d59d19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,29 +1,27 @@ -name: ci +name: CI -on: - push: - branches: - - "*" - pull_request: - branches: - - "*" +on: [push, pull_request] jobs: - testgi: - runs-on: ubuntu-latest + test: strategy: + fail-fast: false matrix: - ruby-version: ["2.6", "2.7", "3.0"] + os: [ubuntu-latest] + ruby: ["2.6", "2.7", "3.0"] + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v1 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby-version }} - bundler-cache: true + - uses: actions/checkout@v2 - - name: Run tests - run: | - bundle install --jobs 4 --retry 3 - bundle exec rspec + - name: Set up Ruby, bundler and dependencies + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run tests + run: bundle exec rspec + + - name: Run linter + run: bundle exec rubocop diff --git a/.gitignore b/.gitignore index 8e048f4..07d25c8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.gems/ *.gem *.rbc .bundle diff --git a/CHANGELOG b/CHANGELOG index 77f2c15..778bc6d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,8 +1,5 @@ = Heart Check - Changelog -== Version 2.4.0 :: 2021-10-01 - * Add docker to facilitate development - == Version 2.3.1 :: 2021-06-14 * Move and rename GitHub template files to correct folder diff --git a/README.md b/README.md index 52b2d6c..65441db 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ declare service checks and an URI that returns the status for each service. With this gem you can monitor if your app has access to the database, a cache service, an API, etc. -[![Build Status](https://travis-ci.org/locaweb/heartcheck.svg)](https://travis-ci.org/locaweb/heartcheck) +[![Build Status](https://github.com/locaweb/heartcheck/actions/workflows/ci.yml/badge.svg)](https://github.com/locaweb/heartcheck/actions/workflows/ci.yml) [![Code Climate](https://codeclimate.com/github/locaweb/heartcheck/badges/gpa.svg)](https://codeclimate.com/github/locaweb/heartcheck) [![Ebert](https://ebertapp.io/github/locaweb/heartcheck.svg)](https://ebertapp.io/github/locaweb/heartcheck) diff --git a/lib/heartcheck/checks/firewall.rb b/lib/heartcheck/checks/firewall.rb index 31f5613..1ecca70 100644 --- a/lib/heartcheck/checks/firewall.rb +++ b/lib/heartcheck/checks/firewall.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: true +# frozen_string_literal: false module Heartcheck module Checks