Skip to content

[Themes] Add status codes and event methods to user logging #11374

[Themes] Add status codes and event methods to user logging

[Themes] Add status codes and event methods to user logging #11374

Workflow file for this run

name: cli-ruby
on:
push:
branches:
- main
pull_request:
merge_group:
concurrency:
group: shopify-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
working-directory: ./packages/cli-kit/assets/cli-ruby
jobs:
test:
name: Tests with Ruby ${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
version:
- 3.1.0
- 3.0.2
- 2.7.5
os:
- macos-12
- ubuntu-20.04
- ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set Git configuration
run: |
git config --global user.email "app-management@shopify.com"
git config --global user.name "App Management"
- name: Set up Ruby ${{ matrix.version }}
uses: ruby/setup-ruby@679e23d4a31bcf7cd0a69acd348e5f79e8c6b443 # pin@v1
with:
ruby-version: ${{ matrix.version }}
bundler: 'latest'
bundler-cache: true
- name: Install Dependencies
run: bundle install
- name: Run Tests
run: bundle exec rake test
rubocop:
name: Rubocop
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
version:
- 3.1.0
os:
- macos-12
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.version }}
uses: ruby/setup-ruby@679e23d4a31bcf7cd0a69acd348e5f79e8c6b443 # pin@v1
with:
ruby-version: ${{ matrix.version }}
bundler: 'latest'
bundler-cache: true
- name: Install Dependencies
run: bundle install
- name: Rubocop
run: bundle exec rake rubocop