From 7ecbf081657fd9892a52b8d0cca510deb87f9b90 Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Wed, 2 Mar 2022 10:51:28 -0800 Subject: Set up CI on GitHub Actions --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..e576981 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + ruby-version: + - '3.1' + - '3.0' + - '2.7' + - '2.6' + - jruby-9.3 + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # 'bundle install' and cache + - name: Run tests + run: bundle exec rake -- cgit v1.2.1