Defaults/.github/workflows/main.yml

27 lines
802 B
YAML
Raw Normal View History

2021-01-24 20:50:11 +08:00
name: CI
on:
- push
- pull_request
jobs:
test:
runs-on: macos-latest
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
- 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