-
Notifications
You must be signed in to change notification settings - Fork 2.6k
72 lines (62 loc) · 1.87 KB
/
Specs.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
name: Specs
jobs:
specs:
strategy:
fail-fast: false
matrix:
task: [SPECS]
ruby: [2.6, 2.7, 3.0]
os: [ubuntu-20.04]
include:
- task: SPECS
os: macos-12
ruby: system
- task: EXAMPLES
os: macos-12
ruby: system
name: ${{ matrix.task }} / ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
steps:
- name: Set build image var
run: echo "ImageVersion=$ImageVersion" >> $GITHUB_ENV
- name: Checkout git
uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
if: ${{ matrix.ruby != 'system' }}
with:
ruby-version: ${{ matrix.ruby }}
- name: Update git submodules
run: git submodule update --init
- uses: actions/cache@v2
with:
path: vendor/bundle
key: gems@v1-${{ matrix.os }}-${{ env.ImageVersion }}-Ruby${{ matrix.ruby }}-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
gems@v1-${{ matrix.os }}-${{ env.ImageVersion }}-Ruby${{ matrix.ruby }}-
- name: Run bundle install
run: |
gem install bundler -v "~> 1.17"
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3 --without debugging documentation
- name: Set up git identity
run: |
git config --global user.email "tests@cocoapods.org"
git config --global user.name "CocoaPods Tests"
- uses: maxim-lobanov/setup-xcode@v1
if: ${{ matrix.task == 'EXAMPLES' }}
with:
xcode-version: 14.2
- name: Run Tests
run: bundle exec rake spec:all
env:
COCOAPODS_CI_TASKS: ${{ matrix.task }}
on:
push:
branches:
- "master"
- "*-stable"
pull_request:
branches:
- master
- "*-stable"