Skip to content

Commit 4b0f6f9

Browse files
authored
Update workflow for swift-snapshot-testing (#230)
1 parent abf5610 commit 4b0f6f9

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/ios_emerge_upload_snapshots.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8-
paths: [ios/**]
8+
paths: [ios/**, .github/workflows/ios*]
99

1010
jobs:
1111
build:
@@ -35,3 +35,34 @@ jobs:
3535
run: bundle exec fastlane ios build_upload_emerge_snapshot
3636
env:
3737
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

0 commit comments

Comments
 (0)