From c7f87fb33e68c514e51d2c2fec9c64792bae36f1 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Mon, 23 Nov 2020 11:22:29 +0000 Subject: [PATCH 1/2] Try adding CI --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..6ce15c53 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Ruby CI + +on: + push: + branches: [$default-branch] + pull_request: + branches: [$default-branch] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + ruby-version: [2.7.x, 2.6.x, 2.5.x, 2.4.x] + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, + # change this to (see https://github.com/ruby/setup-ruby#versioning): + # uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rake From 53066370fa36aaa3abe12997fb850fceb2a9a949 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Mon, 23 Nov 2020 11:23:02 +0000 Subject: [PATCH 2/2] Bye Travis --- .travis.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e036be33..00000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: ruby -rvm: - - 2.4.3 - - 2.5.0 - - 2.6.0 - - 2.7.0 - - ruby-head - -git: - depth: 10 - -env: - global: - - NOKOGIRI_USE_SYSTEM_LIBRARIES=true - -cache: bundler - -matrix: - allow_failures: - - rvm: ruby-head - include: - - script: bundle exec rake rubocop - rvm: 2.7.0