.github/workflows/ci.yml in cobra_commander-0.10.0 vs .github/workflows/ci.yml in cobra_commander-0.11.0
- old
+ new
@@ -1,8 +1,11 @@
name: CI
-on: [push, pull_request]
+on:
+ push:
+ pull_request:
+ types: [opened, reopened]
jobs:
test:
name: Tests
runs-on: ubuntu-latest
@@ -11,19 +14,19 @@
matrix:
ruby:
- "2.5"
- "2.6"
- "2.7"
+ - "3.0"
bundler:
- "1"
- "2"
env:
BUNDLE_GEMFILE: gemfiles/bundler${{ matrix.bundler }}.gemfile
steps:
- uses: actions/checkout@v2
- - name: Set up Ruby
- uses: ruby/setup-ruby@v1
+ - uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: ${{ matrix.bundler }}
bundler-cache: true
- name: Install bundler v1 # Even if we're testing bundler v2, we need v1 available because the fixture components have it in their Gemfile.locks
@@ -35,11 +38,13 @@
lint:
name: Lint Ruby
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - name: rubocop
- uses: reviewdog/action-rubocop@v1
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 3.0
+ - uses: reviewdog/action-rubocop@v1
with:
rubocop_version: 0.88.0
filter_mode: nofilter
fail_on_error: true
rubocop_extensions: ""