Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Run lint & tests

Run lint & tests #213

name: Run lint & tests
on: [push]
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Install deps
run: brew install swift-format xcbeautify
- name: Set dev config
run: cp Release.xcconfig Debug.xcconfig
- name: Run formatter
run: swift-format format -i -r ./Sources/**/*.swift --configuration swift-format-config.json
- name: Run lint
run: swift-format lint -r ./Sources/**/*.swift --configuration swift-format-config.json
- name: Run tests
run: set -o pipefail && xcodebuild test -scheme MembraneVideoroomDemo -destination 'platform=iOS Simulator,name=iPhone 13,OS=16.2' -workspace 'MembraneVideoroomDemo.xcworkspace' -sdk iphonesimulator | xcbeautify