Summary: We run validation workflows on push, but we do this for every branch, so dependabot PRs run every validation twice. We only really want push validation for the main branch. Pull Request resolved: https://github.com/facebook/yoga/pull/1182 Test Plan: PRs still run Reviewed By: cortinico Differential Revision: D41741459 Pulled By: NickGerleman fbshipit-source-id: 51abe2cc0c8c5b9c3fc8c8a20a585c9d5e868a5e
56 lines
1021 B
YAML
56 lines
1021 B
YAML
name: Apple
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
lint-pods:
|
|
name: Lint
|
|
if: ${{ false }} # Apple Build is Broken
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-apple
|
|
|
|
- name: pod spec lint
|
|
run: pod spec lint --verbose
|
|
|
|
build-sample:
|
|
name: Build (${{ matrix.mode }})
|
|
if: ${{ false }} # Apple Build is Broken
|
|
runs-on: macos-latest
|
|
strategy:
|
|
matrix:
|
|
mode: [Debug, Release]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-apple
|
|
|
|
- name: pod install
|
|
working-directory: ./YogaKit/YogaKitSample
|
|
run: pod install
|
|
|
|
# TODO: xcodebuild
|
|
|
|
clang-format:
|
|
name: Format
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: clang-format
|
|
uses: ./.github/actions/clang-format
|
|
with:
|
|
directory: ./YogaKit
|