-
Notifications
You must be signed in to change notification settings - Fork 130
77 lines (66 loc) · 1.73 KB
/
cli-ruby.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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