Merge pull request #82 from patterninc/support-update-shipment-tracki… #353
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: Ruby CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: | |
- 'master' | |
jobs: | |
ci-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [2.7, 2.6, 2.5] | |
# Check-out repo | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true | |
- name: Install dependencies | |
run: bundle install | |
- name: Run RSpec | |
run: bundle exec rspec | |
- name: Run Rubocop | |
run: bundle exec rubocop | |