Create default workflow

This commit is contained in:
Alexandr Goncharov 2020-06-24 20:14:33 +03:00
parent 812fcbb7df
commit 63835bd375
1 changed files with 44 additions and 0 deletions

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

@ -0,0 +1,44 @@
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