Skip to content

Fix: Use GraphQL queries in the Ruby app template and remove Rest #524

Fix: Use GraphQL queries in the Ruby app template and remove Rest

Fix: Use GraphQL queries in the Ruby app template and remove Rest #524

Workflow file for this run

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