test: Run CI on iOS #2
Workflow file for this run
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 workflow | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build_and_test_iOS: | |
name: Build and Test project on iOS | |
runs-on: [ self-hosted, iOS ] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.9.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
run: xcodebuild -scheme InfomaniakRichHTMLEditor build -destination "platform=iOS Simulator,name=iPhone 16,OS=latest" | |
- name: Test | |
run: xcodebuild -scheme InfomaniakRichHTMLEditor test -destination "platform=iOS Simulator,name=iPhone 16,OS=latest" | |
build_and_test_macOS: | |
name: Build and Test project on macOS | |
runs-on: [ self-hosted, macOS ] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.9.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
run: swift build | |
- name: Test | |
run: swift test |