Merge pull request #145 from Shopify/isaacroldan-patch-1 #512
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
on: [push, pull_request] | |
name: CI | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
env: | |
SHOPIFY_API_KEY: test-api-key | |
SHOPIFY_API_SECRET: test-secret-key | |
SCOPES: write_products | |
HOST: app-host-name.io | |
BUNDLE_GEMFILE: ${{ github.workspace }}/web/Gemfile | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby-version: | |
- "2.7" | |
- "3.0" | |
- "3.1" | |
defaults: | |
run: | |
working-directory: ./web | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Find any lock file | |
run: if test -f ../yarn.lock || test -f ../pnpm-lock.yaml || test -f ../package-lock.json; then echo "Please don't commit lock files" && exit 1; fi | |
- name: Set up Ruby ${{ matrix.version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.version }} | |
bundler-cache: true | |
- name: Run RuboCop | |
run: bundle exec rubocop --parallel -c ./rubocop.yml |