Skip to content

Commit

Permalink
Create swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dagronf authored Jan 5, 2025
1 parent 2c0bd16 commit ac2b2a1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Swift

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
macos_build_test:
name: Build/test on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

ios_tests:
name: Build/test on iOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Run tests on iOS
run: xcodebuild -scheme ColorPaletteCodable test -destination "platform=iOS Simulator,name=iPhone SE (3rd generation),OS=latest"

0 comments on commit ac2b2a1

Please sign in to comment.