ci: add GitHub Actions #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Multiplatform test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
SwiftLint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: GitHub Action for SwiftLint | |
uses: norio-nomura/[email protected] | |
Test: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Xcode Setup | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.0.1' | |
- name: Build | |
run: | | |
xcodebuild build -project Swiftly.xcodeproj -scheme Swiftly clean build -sdk iphoneos CODE_SIGNING_ALLOWED=No | |
- name: Run tests | |
run: | | |
xcodebuild test -project Swiftly.xcodeproj -scheme Swiftly clean build -sdk iphoneos -destination "platform=iOS Simulator,OS=17.1,name=iPhone 15 Pro" CODE_SIGNING_ALLOWED=No |