File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 5
5
branches : [main]
6
6
pull_request :
7
7
branches : [main]
8
- paths : [ios/**]
8
+ paths : [ios/**, .github/workflows/ios* ]
9
9
10
10
jobs :
11
11
build :
35
35
run : bundle exec fastlane ios build_upload_emerge_snapshot
36
36
env :
37
37
EMERGE_API_TOKEN : ${{ secrets.EMERGE_API_KEY }}
38
+ upload_snapshots :
39
+ runs-on : ubuntu-latest
40
+
41
+ defaults :
42
+ run :
43
+ working-directory : ./ios
44
+
45
+ steps :
46
+ - name : Checkout
47
+ uses : actions/checkout@v4
48
+
49
+ - name : Ruby setup
50
+ uses : ruby/setup-ruby@v1
51
+ with :
52
+ ruby-version : 3.2.5
53
+ bundler-cache : true
54
+
55
+ - name : Setup gems
56
+ run : gem install emerge
57
+
58
+ - name : Upload snapshots
59
+ env :
60
+ EMERGE_API_TOKEN : ${{ secrets.EMERGE_API_KEY }}
61
+ run : |
62
+ emerge upload snapshots \
63
+ --name "HackerNews Swift-Snapshot-Testing" \
64
+ --id "com.emerge.hn.Hacker-News.swiftsnapshottesting" \
65
+ --repo-name "EmergeTools/hackernews" \
66
+ --client-library swift-snapshot-testing \
67
+ --project-root . \
68
+ --debug
You can’t perform that action at this time.
0 commit comments