Skip to content

Commit

Permalink
Merge pull request #76 from devxoul/github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions as CI
  • Loading branch information
devxoul authored Sep 7, 2019
2 parents 6792b28 + f637a4b commit e64f57c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 37 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
test:
runs-on: macOS-latest
strategy:
matrix:
env:
- sdk: iphonesimulator12.2
destination: platform=iOS Simulator,name=iPhone XS,OS=12.2

- sdk: macosx10.14
destination: arch=x86_64

- sdk: appletvsimulator12.2
destination: OS=12.2,name=Apple TV

steps:
- uses: actions/checkout@v1

- name: Generate Xcode Project
run: swift package generate-xcodeproj --enable-code-coverage

- name: Build and Test
run: |
set -o pipefail && xcodebuild clean build test \
-project "$PROJECT" \
-scheme "$SCHEME" \
-sdk "$SDK" \
-destination "$DESTINATION" \
-configuration Debug \
-enableCodeCoverage YES \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
env:
PROJECT: Then.xcodeproj
SCHEME: Then-Package
SDK: ${{ matrix.env.sdk }}
DESTINATION: ${{ matrix.env.destination }}

- name: Upload Code Coverage
run: |
bash <(curl -s https://codecov.io/bash) \
-X xcodeplist \
-J Then \
-t f1181cbd-8cec-48a3-bddc-064dcb238eca
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

0 comments on commit e64f57c

Please sign in to comment.