Apple
This commit is contained in:
14
.github/actions/clang-format/action.yml
vendored
Normal file
14
.github/actions/clang-format/action.yml
vendored
Normal 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 }}
|
9
.github/actions/setup-apple/action.yml
vendored
Normal file
9
.github/actions/setup-apple/action.yml
vendored
Normal 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
|
20
.github/workflows/valiadate-android.yml
vendored
20
.github/workflows/valiadate-android.yml
vendored
@@ -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
27
.github/workflows/valiadate-apple.yml
vendored
Normal 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
|
Reference in New Issue
Block a user