Adds mise as a dependency manager, and runs swiftformat using mise ve… #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup - Slather | |
run: gem install slather | |
- name: test | |
run: cd DemoApp && xcodebuild -scheme DemoApp -project DemoApp.xcodeproj -destination "platform=iOS Simulator,name=$PHONE,OS=$OS" -enableCodeCoverage YES test | xcpretty && exit ${PIPESTATUS[0]} | |
env: | |
OS: 17.2 | |
PHONE: "iPhone 15 Pro" | |
- name: Slather | |
run: slather | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
file: cobertura.xml | |
notification: | |
name: Notify | |
runs-on: ubuntu-18.04 | |
needs: [test] | |
if: always() | |
steps: | |
- uses: martialonline/workflow-status@v3 | |
id: check | |
- run: echo "Workflow failed" | |
if: steps.check.outputs.status == 'failure' | |
- run: echo "Workflow was cancelled" | |
if: steps.check.outputs.status == 'cancelled' | |
- run: echo "Workflow was successful" | |
if: steps.check.outputs.status == 'success' | |
format: | |
name: Format | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jdx/mise-action@v2 | |
- name: Format | |
run: swiftformat --config swift.swiftformat . --lint |