-
Notifications
You must be signed in to change notification settings - Fork 76
30 lines (27 loc) · 821 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: XCTests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build and Test Bit Slicer on macOS
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
env:
DEVELOPER_DIR: '/Applications/Xcode_15.0.1.app/Contents/Developer'
run: |
xcodebuild build-for-testing -target 'Bit Slicer Tests' -scheme 'Bit Slicer' -derivedDataPath build CODE_SIGN_IDENTITY="-"
- name: Test
run: |
xcodebuild test-without-building -target 'Bit Slicer Tests' -scheme 'Bit Slicer' -derivedDataPath build
- name: Archive Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'build-logs'
path: build/Logs