Swift 6 Support #173
Workflow file for this run
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: build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: | |
- iOS | |
- tvOS | |
- watchOS | |
- macOS | |
#- visionOS | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: mxcl/xcodebuild@v2 | |
with: | |
platform: ${{ matrix.platform }} | |
scheme: FetchRequests-${{ matrix.platform }} | |
xcode: 15.2 | |
action: test | |
code-coverage: true | |
- name: Code Coverage | |
#uses: codecov/codecov-action@v2 | |
run: bash <(curl -s https://codecov.io/bash); | |
validate: | |
runs-on: macos-14 | |
needs: build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Swift Lint | |
run: | | |
command -v swiftlint || brew install --quiet swiftlint | |
swiftlint --reporter github-actions-logging --strict | |
- name: Swift Format | |
run: | | |
command -v swiftformat || brew install --quiet swiftformat | |
swiftformat --reporter github-actions-log --lint . | |
- name: Pod Lint | |
run: pod lib lint --quick --fail-fast --verbose --skip-tests | |
- name: Example Project | |
uses: mxcl/xcodebuild@v2 | |
with: | |
platform: iOS | |
scheme: iOS Example | |
xcode: 15.2 | |
action: build | |
warnings-as-errors: true | |
working-directory: Example |