Skip to content

CI: Fix bin/setup to support Ruby 2.7 #221

CI: Fix bin/setup to support Ruby 2.7

CI: Fix bin/setup to support Ruby 2.7 #221

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- 1-0-stable
schedule:
- cron: '0 8 * * 1' # At 8:00 on Monday
env:
GIT_COMMIT_SHA: ${{ github.sha }}
GIT_BRANCH: ${{ github.ref }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Rubocop
run: |
bin/setup
bin/ci-lint
test:
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.5', '2.6', '2.7']
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Build
run: |
bin/setup
- name: Test
run: |
bin/ci-test