diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be564d2..3cb09e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,27 +1,28 @@ -name: Ruby - +--- +name: CI on: push: branches: - - master - + - main pull_request: - + branches: + - main jobs: - build: + test: runs-on: ubuntu-latest - name: Ruby ${{ matrix.ruby }} strategy: + fail-fast: false matrix: - ruby: - - '2.7.8' - + ruby: ['3.1', '3.2'] + gemfile: ['Gemfile'] + env: + BUNDLE_GEMFILE: ${{ matrix.gemfile }} steps: - - uses: actions/checkout@v3 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - name: Run the default task - run: bundle exec rake + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler: '2.4.12' + bundler-cache: true + - run: bundle exec rubocop + - run: bundle exec rspec