From 94792e726aea6e21a22a42f67dd20105c5dd3b09 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 20 Oct 2021 13:31:54 +0200 Subject: [PATCH 1/4] Add basic github actions action --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..85ea34c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +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: ${{ matrix.handler }} From 4990a5b5e739cc00b0a6b332ae10634ac5ec1782 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 20 Oct 2021 13:35:42 +0200 Subject: [PATCH 2/4] set env HANDLER correctly? --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85ea34c..aa17a67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,4 +21,5 @@ jobs: ruby-version: ${{ matrix.ruby }} bundler-cache: true - run: bundle exec rake - env: ${{ matrix.handler }} + env: + HANDLER: ${{ matrix.handler }} From bfd9f07dc5c4836375c40d3701558e464e2345f6 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 20 Oct 2021 13:44:24 +0200 Subject: [PATCH 3/4] =?UTF-8?q?remove=20travis=20ci=20setup=20=F0=9F=91=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .travis.yml 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= From d45a0aece9532ff45143c9cd9186c5522bde3876 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 20 Oct 2021 13:45:20 +0200 Subject: [PATCH 4/4] replace build status badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.