-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.23 KB
/
app.yml
File metadata and controls
46 lines (42 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Development Workflow
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
paths:
- ".github/workflows/swiftlint.yml"
- ".swiftlint.yml"
- "**/*.swift"
jobs:
test:
name: Build
runs-on: macos-11
defaults:
run:
working-directory: ./GithubProfileWiki
strategy:
matrix:
destination: ["platform=iOS Simulator,OS=15.2,name=iPhone 12"]
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/GithubProfileWiki/Gemfile
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run Unit Tests
run: |
bundle exec fastlane unittest
env:
destination: ${{ matrix.destination }}
- name: Build
run: |
xcodebuild clean build -project GithubProfileWiki.xcodeproj -scheme GithubProfileWiki -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
env:
destination: ${{ matrix.destination }}
- name: Run SwiftLint
run: swiftlint lint --reporter github-actions-logging