Home

Awesome

setup-cocoapods

This action sets up specific version of Cocoapods in GitHub Actions workflow.
Action supports two ways to specify Cocoapods version:

Action is intended for macOS and Ubuntu platforms.

Available parameters

Parameter nameDescriptionSupported format
versionSpecify version of Cocoapods to installlatest, 1.5.2, 1.9.1
podfile-pathSpecify path to Podfile.lock file to determine Cocoapods version dynamicallymyApp/Podfile.lock

At the same time, only one parameter should be specified.

Usage

name: CI
on: [push]
jobs:
  build:
    name: Setup Cocoapods based on provided version
    runs-on: macos-latest
    steps:
    - name: setup-cocoapods
      uses: maxim-lobanov/setup-cocoapods@v1
      with:
        version: 1.9.0

  build:
    name: Setup Cocoapods based on Podfile.lock
    runs-on: macos-latest
    steps:
    - name: setup-cocoapods
      uses: maxim-lobanov/setup-cocoapods@v1
      with:
        podfile-path: myApp/Podfile.lock

License

The scripts and documentation in this project are released under the MIT License.