From a063b8594aa75ce048d37665d1314286a650da35 Mon Sep 17 00:00:00 2001 From: Jason Roelofs Date: Thu, 28 Mar 2024 12:09:59 -0400 Subject: [PATCH] Migrate repo to use GitHub Actions (#272) We are working on consolidating all CI to GitHub Actions. --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..bae7d85a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: + - 'main' + pull_request: {} + +defaults: + run: + shell: bash + +jobs: + test: + name: Test Ruby ${{ matrix.ruby }} + runs-on: ubuntu-latest + strategy: + matrix: + ruby: + - '2.7' + - '3.0' + - '3.1' + - '3.2' + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Rubocop + run: | + bundle exec rubocop + + - name: Spec + run: | + bundle exec rspec