Skip to content

Validate 'setup-cocoapods' #753

Validate 'setup-cocoapods'

Validate 'setup-cocoapods' #753

Workflow file for this run

name: Validate 'setup-cocoapods'
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
jobs:
replace-pre-installed:
name: replace pre-installed version
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup-cocoapods
uses: ./
with:
version: 1.10.0
- name: Validate version
run: pod --version | grep "1.10.0"
install-on-clean-machine:
name: install on clean machine
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Remove pre-installed version
run: gem uninstall cocoapods --all --executables --ignore-dependencies
- name: setup-cocoapods
uses: ./
with:
version: 1.5.3
- name: Validate version
run: pod --version | grep "1.5.3"
version-already-installed:
name: already installed version
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Remove pre-installed version
run: gem uninstall cocoapods --all --executables --ignore-dependencies
- name: Install needed version
run: gem install cocoapods -v 1.9.1
- name: setup-cocoapods
uses: ./
with:
version: 1.9.1
- name: Validate version
run: pod --version | grep "1.9.1"
version-latest:
name: install latest version
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup-cocoapods
uses: ./
with:
version: latest
- name: Validate version
run: pod --version
podfile-stable:
name: install stable version from podfile.lock
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup-cocoapods
uses: ./
with:
podfile-path: __tests__/podfile-example/Podfile.lock
- name: Validate version
run: pod --version | grep "1.5.3"
- name: setup-cocoapods
uses: ./
with:
podfile-path: __tests__/podfile-example/Podfile2.lock
- name: Validate version
run: pod --version | grep "1.9.3"
podfile-preview:
name: install preview version from podfile.lock
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup-cocoapods
uses: ./
with:
podfile-path: __tests__/podfile-example/Podfile3.lock
- name: Validate version
run: pod --version | grep "1.10.0.rc.1"
- name: setup-cocoapods
uses: ./
with:
podfile-path: __tests__/podfile-example/Podfile4.lock
- name: Validate version
run: pod --version | grep "1.9.0.beta.2"
ubuntu-install:
name: install cocoapods on ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup-ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- name: setup-cocoapods
uses: ./
with:
version: 1.8.4
- name: Validate version
run: pod --version | grep "1.8.4"