Prepare for open-source. #3
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: 🚨 Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: 📝 Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🗄️ Checkout Code | |
uses: actions/checkout@v4 | |
- name: 📝 SwiftLint | |
uses: stanfordbdhg/action-swiftlint@v4 | |
with: | |
args: --strict | |
test: | |
name: 🧪 Test | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
platform: [IOS, MACOS, MAC_CATALYST, TVOS, WATCHOS, VISIONOS] | |
steps: | |
- name: 👀 Install visionOS runtime | |
if: matrix.platform == 'visionOS' | |
run: | | |
sudo xcodebuild -runFirstLaunch | |
sudo xcrun simctl list | |
sudo xcodebuild -downloadPlatform visionOS | |
sudo xcodebuild -runFirstLaunch | |
- name: 🗄️ Checkout Code | |
uses: actions/checkout@v4 | |
- name: 🧰 Select Xcode Version | |
run: xcodes select 16 | |
- name: 🧪 Run tests | |
run: make XCODEBUILD_ARGUMENT=test CONFIG=Debug PLATFORM='${{ matrix.platform }}' | |
- name: 📊 Upload Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
swift: true |