From 65044aff6fd44fd8dd75c3ca16b98c49ce0312e5 Mon Sep 17 00:00:00 2001 From: Arthur Chiu <24772+achiurizo@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:14:48 -0800 Subject: [PATCH] Use GitHub actions to run CI (#2281) * initial gh action ci.yml * lock rack < 3 * clean up old spec, remove macos-latest for now --------- Co-authored-by: Arthur Chiu --- .circleci/config.yml | 42 ---------------------------------------- .github/workflows/ci.yml | 18 +++++++++++++++++ Gemfile | 2 +- 3 files changed, 19 insertions(+), 43 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/ci.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 7aa9c7ecc..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,42 +0,0 @@ -version: 2.1 -orbs: - ruby: circleci/ruby@2.0.0 - -jobs: - build: - parameters: - ruby-version: - type: string - docker: - - image: circleci/<< parameters.ruby-version >> - steps: - - checkout - - run: - name: Install Bundler - command: gem install bundler -v 2.4.22 - - run: - name: Install dependencies - command: bundle install - - run: - name: Run tests - command: bundle exec rake test -workflows: - build-and-test-stable: - jobs: - - build: - matrix: - parameters: - # https://github.com/CircleCI-Public/cimg-ruby - # only supports the last three ruby versions - ruby-version: - - "ruby:2.7.5" - - "ruby:3.0.3" - - "jruby:9.3.3.0" - build-and-test-latest: - jobs: - - build: - matrix: - parameters: - ruby-version: - - "ruby:latest" - - "jruby:latest" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..7660966b8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI +on: [push] + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', 'jruby'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - run: bundle exec rake test diff --git a/Gemfile b/Gemfile index e933e7b90..1b34066f9 100644 --- a/Gemfile +++ b/Gemfile @@ -46,7 +46,7 @@ group :development do gem "minitest", ">= 4.0" gem "mocha", ">= 2.0" gem "oga", ">= 2.5", "< 3" - gem "rack", ">= 1.3.0" + gem "rack", ">= 1.3.0", "< 3" gem "rack-test", ">= 0.6.3" gem "rake", ">= 10.5.0" gem 'rb-readline', '~> 0.4.2'