Add github actions for dependency pod validations (#1834)

Summary:
This PR adds github actions to validate the pods, so that the changes which breaks the validation is not made. This PR also downgrades the version update of OpenSSL, as it doesn't validate the Folly podspec. I have [raised](https://github.com/krzyzanowskim/OpenSSL/issues/113) an issue on the repository which manages the openssl dependency.
## Changelog

- Added githubaction for dependent pod validation
- Downgraded the openssl version, as with upgraded version the folly pod didn't validate.

Pull Request resolved: https://github.com/facebook/flipper/pull/1834

Test Plan: CI

Reviewed By: passy

Differential Revision: D25939525

Pulled By: priteshrnandgaonkar

fbshipit-source-id: f70d043f1f6b2c79028212d8f56c6b8632092e33
This commit is contained in:
Pritesh Nandgaonkar
2021-01-19 14:18:08 -08:00
committed by Facebook GitHub Bot
parent 18ff69bacd
commit 140ff8861e
3 changed files with 82 additions and 15 deletions

View File

@@ -0,0 +1,69 @@
name: Validate Dependent Podspecs
on:
push:
paths:
- "iOS/Podspecs/**"
pull_request:
paths:
- "iOS/Podspecs/**"
jobs:
lint-flipper_doubleconversion_pod:
runs-on: macos-latest
defaults:
run:
working-directory: iOS/Podspecs
steps:
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint DoubleConversion
run: pod spec lint Flipper-DoubleConversion.podspec --use-libraries --allow-warnings --verbose --skip-import-validation
lint-flipper_folly_pod:
runs-on: macos-latest
defaults:
run:
working-directory: iOS/Podspecs
steps:
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint Folly
run: pod spec lint Flipper-Folly.podspec --use-libraries --allow-warnings --verbose --skip-import-validation
lint-flipper_glog_pod:
runs-on: macos-latest
defaults:
run:
working-directory: iOS/Podspecs
steps:
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint Glog
run: pod spec lint Flipper-Glog.podspec --use-libraries --allow-warnings --verbose --skip-import-validation
lint-flipper_peertalk_pod:
runs-on: macos-latest
defaults:
run:
working-directory: iOS/Podspecs
steps:
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint Peertalk
run: pod spec lint Flipper-PeerTalk.podspec --use-libraries --allow-warnings --verbose --skip-import-validation
lint-flipper_rsocket_pod:
runs-on: macos-latest
defaults:
run:
working-directory: iOS/Podspecs
steps:
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint RSocket
run: pod spec lint Flipper-RSocket.podspec --use-libraries --allow-warnings --verbose --skip-import-validation

View File

@@ -6,21 +6,19 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint FlipperKit
run: pod spec lint FlipperKit.podspec --use-libraries --allow-warnings --verbose --skip-import-validation
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint FlipperKit
run: pod spec lint FlipperKit.podspec --use-libraries --allow-warnings --verbose --skip-import-validation
lint-flipper_pod:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint Flipper
run: pod spec lint Flipper.podspec --use-libraries --allow-warnings --verbose
- uses: actions/checkout@v2
- name: Install Dependences
run: pod repo update
- name: Lint Flipper
run: pod spec lint Flipper.podspec --use-libraries --allow-warnings --verbose