diff --git a/.github/workflows/ci.yml b/.github/workflows/build.yml similarity index 76% rename from .github/workflows/ci.yml rename to .github/workflows/build.yml index a5414b6..7766443 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,9 @@ -name: ci +name: build on: [push, pull_request] jobs: - build: + test: runs-on: ubuntu-latest container: image: ruby:2.7.1 @@ -19,20 +19,17 @@ jobs: - uses: actions/checkout@v2 - run: gem install bundler - run: bundle install --jobs 4 --retry 3 - - uses: paambaati/codeclimate-action@v2.5.6 + - run: bundle exec rake env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} DATABASE_URL: postgres://postgres@postgres/postgres - with: - coverageCommand: bundle exec rake publish: - needs: build + needs: test if: github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: elgohr/Publish-Docker-Github-Action@2.11 + - uses: elgohr/Publish-Docker-Github-Action@2.14 with: name: hakanensari/frankfurter username: ${{ secrets.DOCKER_USERNAME }} diff --git a/Gemfile b/Gemfile index 5d20366..4b07019 100644 --- a/Gemfile +++ b/Gemfile @@ -21,7 +21,7 @@ group :test do gem 'rack-test' gem 'rubocop-performance' gem 'rubocop-sequel' - gem 'simplecov', '0.17.1' + gem 'simplecov' gem 'vcr' gem 'webmock' end diff --git a/Gemfile.lock b/Gemfile.lock index 21bbdc0..bde101d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -17,7 +17,6 @@ GEM i18n (1.8.2) concurrent-ruby (~> 1.0) jaro_winkler (1.5.4) - json (2.3.0) kgio (2.11.3) minitest (5.14.0) minitest-around (0.5.0) @@ -68,11 +67,10 @@ GEM sequel_pg (1.12.5) pg (>= 0.18.0, != 1.2.0) sequel (>= 4.38.0) - simplecov (0.17.1) + simplecov (0.18.5) docile (~> 1.1) - json (>= 1.8, < 3) - simplecov-html (~> 0.10.0) - simplecov-html (0.10.2) + simplecov-html (~> 0.11) + simplecov-html (0.12.2) sinatra (2.0.8.1) mustermann (~> 1.0) rack (~> 2.0) @@ -108,7 +106,7 @@ DEPENDENCIES rubocop-sequel rufus-scheduler sequel_pg - simplecov (= 0.17.1) + simplecov sinatra unicorn vcr diff --git a/README.md b/README.md index 2e8e6e6..68f243c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # Frankfurter -[![Build](https://github.com/hakanensari/frankfurter/workflows/ci/badge.svg)](https://github.com/hakanensari/frankfurter/actions) -[![Maintainability](https://api.codeclimate.com/v1/badges/81f8a458f29f171928f7/maintainability)](https://codeclimate.com/github/hakanensari/frankfurter/maintainability) -[![Test Coverage](https://api.codeclimate.com/v1/badges/81f8a458f29f171928f7/test_coverage)](https://codeclimate.com/github/hakanensari/frankfurter/test_coverage) +[![Build](https://github.com/hakanensari/frankfurter/workflows/build/badge.svg)](https://github.com/hakanensari/frankfurter/actions) [Frankfurter](https://www.frankfurter.app) is a free and open-source currency data API that tracks reference exchange rates published by the European Central Bank.