Add build action (#3)

This commit is contained in:
Alexandr Goncharov 2020-10-19 19:21:00 +03:00 committed by GitHub
parent f9a74ce07d
commit 11445d4931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

32
.github/workflows/swift.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Build
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: ['12.0']
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
- uses: actions/checkout@v2
- run: swift -version
- run: swift package clean
- run: swift test -v --enable-code-coverage