Add build action (#3)
This commit is contained in:
parent
f9a74ce07d
commit
11445d4931
|
@ -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
|
Loading…
Reference in New Issue