Skip to content

IOS-1269 feat: add AddComponentModifier Macro #87

IOS-1269 feat: add AddComponentModifier Macro

IOS-1269 feat: add AddComponentModifier Macro #87

Workflow file for this run

name: CI
on:
pull_request:
paths:
- "Package.swift"
- "Package.resolved"
- "Sources/**"
- "Tests/**"
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ github.job }}"
cancel-in-progress: true
jobs:
build_and_test:
name: Build and Test
runs-on: macos-15
strategy:
matrix:
xcode: ['16.4']
config: ['Debug', 'Release']
env:
SCHEME: KarrotListKit
DESTINATION: platform=iOS Simulator,name=iPhone 16,OS=18.5
steps:
- uses: actions/checkout@v4
- name: Setup Xcode ${{ matrix.xcode }}
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app
shell: bash
- name: Set Swift Syntax Prebuilts
run: |
defaults write com.apple.dt.Xcode IDEPackageEnablePrebuilts YES
- name: Run `build-for-testing`
run: |
set -o pipefail && xcodebuild build-for-testing \
-scheme "$SCHEME" \
-destination "$DESTINATION" \
-configuration ${{ matrix.config }} \
ENABLE_TESTABILITY=YES \
| xcbeautify --renderer github-actions
- name: Run `test-without-building`
run: |
set -o pipefail && xcodebuild test-without-building \
-scheme "$SCHEME" \
-destination "$DESTINATION" \
-configuration ${{ matrix.config }} \
ENABLE_TESTABILITY=YES \
| xcbeautify --renderer github-actions
check-macro-compatibility:
name: Check Macro Compatibility
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Swift Macro Compatibility Check
uses: Matejkob/swift-macro-compatibility-check@v1