Skip to content

Commit

Permalink
Add GitHub Actions workflow (#71)
Browse files Browse the repository at this point in the history
Add GitHub Actions workflow
  • Loading branch information
paololeonardi authored Jul 22, 2024
1 parent 85eeaa9 commit d902037
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/run-tests-WaterfallGridSample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: WaterfallGridSample

on:
push:
pull_request:

jobs:
build:
name: Build and Test
runs-on: macos-14

steps:
- uses: actions/checkout@v4

- name: List available Xcode versions
run: ls /Applications | grep Xcode

- name: Set up Xcode version
run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer

- name: Show current version of Xcode
run: xcodebuild -version

- name: Show Xcode embedded SDKs
run: xcodebuild -showsdks

- name: Show buildable schemes
run: xcodebuild -list

- name: Show eligible build destinations
run: xcodebuild -showdestinations -scheme WaterfallGrid

- name: Install Bundler
run: gem install bundler

- name: Install xcpretty
run: gem install xcpretty

- name: Build and run tests (iOS)
run: xcodebuild test -scheme WaterfallGrid -destination "platform=iOS Simulator,OS=17.5,name=iPhone 15 Pro" | xcpretty

- name: Build (macOS)
run: xcodebuild build -scheme WaterfallGrid -destination "platform=macOS,arch=arm64e,name=My Mac" | xcpretty

- name: Build (Mac Catalyst)
run: xcodebuild build -scheme WaterfallGrid -destination "platform=macOS,arch=arm64e,variant=Mac Catalyst,name=My Mac" | xcpretty

- name: Build (tvOS)
run: xcodebuild build -scheme WaterfallGrid -destination "platform=tvOS Simulator,OS=17.5,name=Apple TV" | xcpretty

- name: Build (watchOS)
run: xcodebuild build -scheme WaterfallGrid -destination "platform=watchOS Simulator,OS=10.5,name=Apple Watch Ultra 2 (49mm)" | xcpretty
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ A waterfall grid layout view for SwiftUI.
</p>

<p align="center">
<img src="https://img.shields.io/bitrise/deaf4a89eca9a69a?token=tU52Wx6TQeKRWAiTE5iS3g&style=flat" />
<img src="https://img.shields.io/badge/Swift-5.1-red?style=flat" />
<img src="https://img.shields.io/cocoapods/p/WaterfallGrid" />
<a href="https://swift.org/package-manager">
Expand Down

0 comments on commit d902037

Please sign in to comment.