Skip to content

Commit

Permalink
Merge pull request #1065 from mbj/change/to-setup-ruby
Browse files Browse the repository at this point in the history
Change to ruby/setup-ruby action
  • Loading branch information
mbj authored Oct 18, 2020
2 parents a3a04c0 + af641a1 commit 9e5068e
Showing 1 changed file with 17 additions and 28 deletions.
45 changes: 17 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.5', '2.6', '2.7']
ruby: [ruby-2.5, ruby-2.6, ruby-2.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: |
gem install bundler
bundle install
- run: bundle install
- run: bundle exec rspec spec/unit
ruby-mutant:
name: Mutation coverage
Expand All @@ -35,18 +33,16 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.6', '2.7']
ruby: [ruby-2.6, ruby-2.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: |
gem install bundler
bundle install
- run: bundle install
- run: ./mutant.sh --since HEAD~1 -- 'Mutant*'
ruby-integration-minitest:
name: Integration Minitest
Expand All @@ -55,17 +51,14 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.5', '2.6', '2.7']
ruby: [ruby-2.5, ruby-2.6, ruby-2.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: gem list
- run: |
gem install bundler
bundle install
- run: bundle install
- run: bundle exec rspec spec/integration -e minitest
ruby-integration-rspec:
name: Integration RSpec
Expand All @@ -74,16 +67,14 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.5', '2.6', '2.7']
ruby: [ruby-2.5, ruby-2.6, ruby-2.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: |
gem install bundler
bundle install
- run: bundle install
- run: bundle exec rspec spec/integration -e rspec
ruby-integration-generation:
name: Integration Mutation Generation
Expand All @@ -92,16 +83,14 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.5', '2.6', '2.7']
ruby: [ruby-2.5, ruby-2.6, ruby-2.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: |
gem install bundler
bundle install
- run: bundle install
- run: bundle exec rspec spec/integration -e generation
ruby-rubocop:
name: Rubocop
Expand All @@ -110,11 +99,11 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.7']
ruby: [ruby-2.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: bundle install
Expand Down

0 comments on commit 9e5068e

Please sign in to comment.