Create main.yml

This commit is contained in:
Alexandr Goncharov 2020-06-24 20:14:33 +03:00 committed by GitHub
parent fb5c6cee80
commit 3eec311d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 46 additions and 0 deletions

46
.github/workflows/main.yml vendored Normal file
View File

@ -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