From 814915707c8ed2679a0ae29a0036829b7b70136d Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Sun, 21 Feb 2021 12:58:08 -0600 Subject: [PATCH] Set up CI This excludes `head` from the Ruby version matrix due to an issue with installing Nokogiri, described by sparklemotion/nokogiri#2185. --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 00000000..111d8bce --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI +on: [push, pull_request] +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [2.7, "3.0"] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler: latest + bundler-cache: true + + - name: Run tests + run: bin/test