Skip to content

Commit

Permalink
Add basic tests via GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed May 8, 2021
1 parent 42f9325 commit 6aaca55
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Main

on:
push:
branches: [main]

jobs:
tests:
runs-on: macos-11.0

steps:
- uses: actions/checkout@v2

- name: Build & Run Tests
run: xcodebuild test -scheme App -destination 'platform=iOS Simulator,name=iPad Air (4th generation),OS=latest'
24 changes: 24 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pull Request

on:
pull_request:
branches: [main]

jobs:
cancel-previous-runs:
runs-on: ubuntu-latest

steps:
- name: Cancel previous runs of this workflow on same branch
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tests:
runs-on: macos-11.0

steps:
- uses: actions/checkout@v2

- name: Build & Run Tests
run: xcodebuild test -scheme App -destination 'platform=iOS Simulator,name=iPad Air (4th generation),OS=latest'
32 changes: 29 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
## macOS
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
Expand Down Expand Up @@ -64,6 +93,3 @@ fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/metadata/review_information

# Symbolic Links to Scripts
Scripts/SymLinks

0 comments on commit 6aaca55

Please sign in to comment.