From 624c7bf13c9d250e9ab67a2e028cf24484b2b858 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 20 Aug 2021 15:00:03 -0400 Subject: [PATCH] ci: add github actions workflow --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ac6bb70 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: ci +concurrency: + group: "${{github.workflow}}-${{github.ref}}" + cancel-in-progress: true +on: + workflow_dispatch: + push: + branches: + - main + - v*.*.x + tags: + - v*.*.* + pull_request: + types: [opened, synchronize] + branches: + - '*' + +jobs: + test: + strategy: + matrix: + ruby: ["2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "ruby-head", "jruby-9.2", "jruby-head"] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{matrix.ruby}} + bundler-cache: true + - run: bundle exec rake