Skip to content

Commit

Permalink
Add GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed Apr 22, 2020
1 parent acd67c0 commit 4b0c2ef
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint

on:
- push
- pull_request

jobs:
lint:
name: Lint
runs-on: macos-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install dependencies
run: |
brew install mint
mint install nicklockwood/[email protected]
mint install realm/[email protected]
- name: Lint
run: |
swiftlint --quiet --strict
swiftformat --lint .
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test

on:
- push
- pull_request

jobs:
test:
name: Test
runs-on: macos-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Test
run: xcodebuild clean test -workspace ./.swiftpm/xcode/package.xcworkspace -scheme SwiftExec

0 comments on commit 4b0c2ef

Please sign in to comment.