This commit is contained in:
Nick Gerleman
2022-10-14 07:26:16 -07:00
parent 55d614c4c2
commit 6168ad818e
4 changed files with 50 additions and 20 deletions

14
.github/actions/clang-format/action.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: Clang Format
inputs:
directory:
description: Directory to Lint
required: true
runs:
using: "composite"
steps:
- name: clang-format ${{ inputs.directory }}
uses: jidicula/clang-format-action@v4.9.0
with:
clang-format-version: '12' # This should be roughly in sync with Arcanist
check-path: ${{ inputs.directory }}

View File

@@ -0,0 +1,9 @@
name: Setup Apple envirionment
runs:
using: "composite"
steps:
# TODO: This and Ruby should be versioned
- name: Install Cocoapods
shell: bash
run: sudo gem install cocoapods

View File

@@ -16,23 +16,3 @@ jobs:
- name: Build - name: Build
run: ./gradlew assemble${{ matrix.mode }} run: ./gradlew assemble${{ matrix.mode }}
test:
name: Unit Tests (${{ matrix.mode }})
runs-on: ubuntu-latest
strategy:
matrix:
mode: [Debug]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-android
- name: Build
run: ./gradlew assemble${{ matrix.mode }}
- name: List
run: ls -R -l /home/runner/work/yoga/yoga/java
- name: Run Java unit tests
run: ./gradlew :yoga:test${{ matrix.mode }}UnitTest --info

27
.github/workflows/valiadate-apple.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Apple
on: [push, pull_request, workflow_dispatch]
jobs:
lint-pods:
name: Lint Podspecs
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
clang-format:
name: Clang Format
runs-on: ubuntu-latest
steps:
- name: clang-format
uses: ./.github/actions/clang-format
with:
directory: ./YogaKit