Skip to content

Commit db81dfb

Browse files
committed
update workflows
1 parent 5f9f2f5 commit db81dfb

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

.github/workflows/swift.yml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,46 @@
11
name: Swift
22

33
on:
4-
push:
5-
branches: [ develop ]
64
pull_request:
7-
branches: [ main ]
5+
branches: [ develop ]
86

97
jobs:
10-
build:
118

9+
swiftLint:
1210
runs-on: macos-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install Bundle
14+
run: bundle install
15+
- name: Run swiftlint
16+
run: bundle exec fastlane swiftLintLane
1317

18+
build:
19+
needs: swiftLint
20+
runs-on: macos-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Install Bundle
24+
run: bundle install
25+
- name: Build
26+
run: bundle exec fastlane buildLane
27+
- name: Upload build
28+
uses: actions/upload-artifact@v2
29+
with:
30+
name: build
31+
path: derivedData/Build/Products/Debug-iphonesimulator/Addame.app
32+
33+
unitTests:
34+
needs: build
35+
runs-on: macos-latest
1436
steps:
15-
- uses: actions/checkout@v1
16-
- name: GitHub Action for SwiftLint
17-
uses: norio-nomura/action-swiftlint@3.2.1
37+
- uses: actions/checkout@v2
38+
- name: Download core tests
39+
uses: actions/download-artifact@v2
40+
with:
41+
name: coreTests
42+
path: derivedData/Build/Products/Debug-iphonesimulator/EventFormViewTests.xctest
43+
- name: Install Bundle
44+
run: bundle install
45+
- name: Run unit tests
46+
run: bundle exec fastlane unitTestLane

0 commit comments

Comments
 (0)