Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Merge branch 'macos-appkit-with-nsui' of github.com:martindufort/Pill… #5

Merge branch 'macos-appkit-with-nsui' of github.com:martindufort/Pill…

Merge branch 'macos-appkit-with-nsui' of github.com:martindufort/Pill… #5

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'SECURITY.md'
- 'ios.yml'
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: macOS-latest
strategy:
matrix:
destination:
- "platform=macOS"
- "platform=macOS,variant=Mac Catalyst"
- "platform=iOS Simulator,name=iPhone 11"
steps:
- uses: actions/checkout@v4
- name: Install XCBeautify
run: brew install xcbeautify
- name: Show buildable schemes
run: xcodebuild -list
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Test platform ${{ matrix.destination }}

Check failure on line 41 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 41
env:
scheme: ${{ 'default' }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
set -o pipefail && xcodebuild -scheme "$scheme" -destination "${{ matrix.destination }}" test | xcbeautify --renderer github-actions