Skip to content

Bump actions/checkout from 3 to 4 #102

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #102

Workflow file for this run

# GitHub Actions Virtual Environments
# https://github.com/actions/virtual-environments/
name: CI
on:
push:
branches:
- main
paths:
- '.github/workflows/ci.yml'
- 'Sources/**/*.*'
- 'Tests/**/*.*'
- 'Example/**/*.*'
pull_request:
branches:
- main
env:
PROJECT: StatusItemController.xcodeproj
SCHEME: StatusItemController
EXAMPLE_PROJECT: Example/ExampleApp.xcodeproj
EXAMPLE_SCHEME: ExampleApp
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer
MACOS_DEST: "platform=macOS,arch=x86_64"
jobs:
env-details:
name: Environment details
runs-on: macOS-11
steps:
- name: xcode version
run: xcodebuild -version -sdk
test-macOS:
name: Tests
runs-on: macOS-11
steps:
- name: git checkout
uses: actions/checkout@v4
- name: unit tests
run: |
set -o pipefail
xcodebuild clean test \
-project "$PROJECT" \
-scheme "$SCHEME" \
-destination "$MACOS_DEST" \
CODE_SIGN_IDENTITY="-" | xcpretty -c
- name: ui tests
run: |
set -o pipefail
xcodebuild clean test \
-project "$EXAMPLE_PROJECT" \
-scheme "$EXAMPLE_SCHEME" \
-destination "$MACOS_DEST" \
CODE_SIGN_IDENTITY="-" | xcpretty -c