diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..6876d35 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,29 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + strategy: + fail-fast: false + matrix: + ruby: [2.5, 2.6, 2.7] + + runs-on: ubuntu-latest + name: Test against Ruby ${{ matrix.ruby }} + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + + - name: Install gems + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + + - name: Run tests + run: bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2e0ac37..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false -language: ruby -rvm: - - 2.3.8 - - 2.4.10 - - 2.5.8 - - 2.6.6 diff --git a/README.md b/README.md index b203e67..9068073 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Ruby gem to export bookings and more to DATEV format as CSV file Supported DATEV format: v7.0 -[![Build Status](https://travis-ci.org/ledermann/datev.svg?branch=master)](https://travis-ci.org/ledermann/datev) +[![Build Status](https://github.com/ledermann/datev/workflows/CI/badge.svg)](https://github.com/ledermann/datev/actions) [![Code Climate](https://codeclimate.com/github/ledermann/datev/badges/gpa.svg)](https://codeclimate.com/github/ledermann/datev) [![Coverage Status](https://coveralls.io/repos/github/ledermann/datev/badge.svg?branch=master)](https://coveralls.io/github/ledermann/datev?branch=master)