Skip to content

Refactor architecture, redesign UI, and add tests and CI #1

Refactor architecture, redesign UI, and add tests and CI

Refactor architecture, redesign UI, and add tests and CI #1

Workflow file for this run

name: Unit Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Build and Test
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select latest Xcode
run: sudo xcode-select -switch /Applications/Xcode.app
- name: Show versions
run: |
xcodebuild -version
swift --version
- name: Build and test
run: |
xcodebuild test \
-project JSONParser/JSONParser.xcodeproj \
-scheme JSONParser \
-destination 'platform=macOS' \
-resultBundlePath TestResults.xcresult \
CODE_SIGNING_ALLOWED=NO
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: TestResults.xcresult
if-no-files-found: ignore