Skip to content

Commit

Permalink
[732] First attempt at running unit tests in PRs with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Clstroud committed May 14, 2024
1 parent 737c677 commit 4b041c0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 136 deletions.
136 changes: 0 additions & 136 deletions .circleci/config.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

on:
pull_request:
branches:
- develop
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

0 comments on commit 4b041c0

Please sign in to comment.