2021-01-24 20:50:11 +08:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: macos-latest
|
2021-05-16 20:21:17 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
scheme: [Defaults-macOS, Defaults-iOS, Defaults-tvOS]
|
|
|
|
include:
|
|
|
|
- scheme: Defaults-macOS
|
|
|
|
destination: macOS
|
|
|
|
- scheme: Defaults-iOS
|
|
|
|
destination: iOS Simulator,name=iPhone 8
|
|
|
|
- scheme: Defaults-tvOS
|
|
|
|
destination: tvOS Simulator,name=Apple TV
|
2021-01-24 20:50:11 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-16 20:21:17 +08:00
|
|
|
- name: Run tests
|
|
|
|
run: xcodebuild clean test -project Defaults.xcodeproj -scheme ${{ matrix.scheme }} -destination "platform=${{ matrix.destination }}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
|
2021-01-24 20:50:11 +08:00
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: norio-nomura/action-swiftlint@3.2.1
|