Create main.yml
This commit is contained in:
parent
fb5c6cee80
commit
3eec311d71
|
@ -0,0 +1,46 @@
|
|||
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
SwiftLint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: GitHub Action for SwiftLint with --strict
|
||||
uses: norio-nomura/action-swiftlint@3.1.0
|
||||
with:
|
||||
args: --strict
|
||||
|
||||
|
||||
Xcode:
|
||||
strategy:
|
||||
matrix:
|
||||
xcode_version: ['11.3', '11.4']
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: swift -version
|
||||
- run: swift test --enable-code-coverage
|
||||
|
||||
Linux:
|
||||
strategy:
|
||||
matrix:
|
||||
tag: ['5.1', '5.2']
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: swift:${{ matrix.tag }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: swift test --enable-test-discovery --enable-code-coverage
|
||||
- uses: mattpolzin/swift-codecov-action@0.4.0
|
Loading…
Reference in New Issue