From 424758195ce87d361808de83ff854d9bbe434cb1 Mon Sep 17 00:00:00 2001 From: Eric Kessler Date: Wed, 2 Jun 2021 02:39:04 -0400 Subject: [PATCH] Add a GitHub Action workflow for CI Trying to get GitHub Actions going for the project. --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..316c151 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: [push, pull_request] + +jobs: + + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + ruby-version: ['2.4, '2.5', '2.6', '2.7', '3.0'] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run Tests + run: bundle exec rake spec