diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..aa17a67 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: build +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + if: "!contains(github.event.head_commit.message, '[skip ci]')" + runs-on: ubuntu-latest + strategy: + matrix: + ruby: ['2.5', '2.6', '2.7'] + handler: ['nokogiri', 'ox', 'oga'] + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - run: bundle exec rake + env: + HANDLER: ${{ matrix.handler }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e7cb7f6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: ruby - -rvm: - - 2.5 - - 2.6 - - 2.7 - -env: - matrix: - - HANDLER="nokogiri" - - HANDLER="ox" - - HANDLER="oga" - -notifications: - webhooks: - secure: QFW4WHH8A/ht3EKFbUNc7u03Ca+P6qm7ypIiXU+y8fO8fEps2/f7fTrWIUGkohShFyaaZw1/NjDWUx86LYBFfs4dYduHy8U3BSbWrS4ot4+oO9TsKdatKydTXpbvRqjgPITECmMWDoz4e7gMdZ5fGuBBdO1LQGVRr9mUXl13QU4= diff --git a/README.md b/README.md index c1e70d4..3d13ce2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 🎷Saxophone -[![Build Status](https://travis-ci.org/Absolventa/saxophone.svg?branch=master)](https://travis-ci.org/Absolventa/saxophone) +[![Build Status](https://github.com/Absolventa/saxophone/actions/workflows/build.yml/badge.svg)](https://github.com/Absolventa/saxophone/actions/workflows/build.yml) A declarative SAX parsing library backed by Nokogiri, Ox or Oga.