Merge pull request #469 from irasutoya-tools/dependabot/bundler/rexml… #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
- name: Install bundler | |
run: gem install bundler | |
- name: Install dependencies | |
run: bundle install --jobs 4 | |
- name: Run lint | |
run: bundle exec rubocop lib | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['3.2.2', '3.1.4', '3.0.6', '2.7.8', '2.6.10'] | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install bundler | |
run: gem install bundler | |
- name: Install dependencies | |
run: bundle install --jobs 4 | |
- name: Run test | |
env: | |
RAILS_ENV: test | |
COVERAGE: true | |
CODECOV_TOKEN: d9091f65-2e14-4029-86e6-f6ec9c59ecec | |
run: bundle exec rspec |