From f68aae05042fd5395c6b8b08df1353d55382804f Mon Sep 17 00:00:00 2001 From: Lawson Jaglom-Kurtz Date: Thu, 13 Jan 2022 15:26:09 -0700 Subject: [PATCH] Add CI GitHub workflow --- .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..2d7a463 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + name: Ruby ${{ matrix.ruby }} + strategy: + matrix: + ruby: [2.6, 2.7, 3.0, 3.1] + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Ruby tests + run: bundle exec rspec