Skip to content

Merge pull request #87 from payjp/kitagawa/2.1.1 #140

Merge pull request #87 from payjp/kitagawa/2.1.1

Merge pull request #87 from payjp/kitagawa/2.1.1 #140

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
env:
CACHE_NUMBER: 0
jobs:
build:
runs-on: macos-14
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install HomeBrew
run: |
brew bundle || true
cat Brewfile.lock.json || true
- run: xcodebuild -version
- uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ env.CACHE_NUMBER }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-${{ env.CACHE_NUMBER }}-
- name: Install gems
run: |
bundle config set deployment 'true'
bundle config set clean 'true'
bundle install --jobs 4 --retry 3
- uses: actions/cache@v4
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ env.CACHE_NUMBER }}-${{ hashFiles('Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-${{ env.CACHE_NUMBER }}-
- run: bundle exec fastlane ios carthage_bootstrap
- run: bundle exec fastlane ios check_swift_format
- run: bundle exec fastlane ios check_objc_format
- run: bundle exec fastlane ios test
- run: bundle exec fastlane ios lint_podspec
- run: bundle exec fastlane ios build_swiftpm
- run: bundle exec fastlane ios build_carthage_swift_example
- run: bundle exec fastlane ios build_cocoapods_objc_example