Skip to content

[732] First attempt at running unit tests in PRs with Github Actions #1

[732] First attempt at running unit tests in PRs with Github Actions

[732] First attempt at running unit tests in PRs with Github Actions #1

Workflow file for this run

name: Test
on:
pull_request:
branches:
- develop

Check failure on line 6 in .github/workflows/run_tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/run_tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
jobs:
unit-test:
name: Unit Test
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bootstrap
run: |
mkdir artifacts
ls -l /Applications
sudo xcode-select -s "/Applications/Xcode_15.2.app/Contents/Developer"
- name: Test
run: |
set -o pipefail && env NSUnbufferedIO=YES xcodebuild test \
-project "Vocable.xcodeproj" \
-scheme "Development" \
-destination "platform=iOS Simulator,name=iPhone 15,OS=latest" \
-resultBundlePath "artifacts/test.xcresult" \
| tee "artifacts/xcodebuild-test.log" \
| xcbeautify \
--renderer github-actions \
--report junit \
--report-path artifacts
- name: Upload Results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-output
path: artifacts