This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Screenshot automation * Update screenshots.yml * Update screenshots.yml * Update screenshots.yml * Update screenshots.yml * Update screenshots.yml * Rename disabletravis.txt to travis.yml * Delete travis.yml * Update screenshots.yml * Update project.yml * Update Snapfile * Update screenshots.yml * Update SnapshotHelper.swift * Update screenshots.yml * Update Snapfile * Update Snapfile * Update setup.sh * Update screenshots.yml * Update setup.sh * Update setup.sh * mock conform to protocols * use a lane for snapshots * setup.sh should not build carthage in CI mode, as it is done by fastlane * Update screenshots.yml Co-authored-by: Philippe Auriach <[email protected]>
- Loading branch information
1 parent
4ba48fd
commit 8e8e8eb
Showing
6 changed files
with
117 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Screenshot automation | ||
on: | ||
push: | ||
branches: | ||
- 'screenshots/*' | ||
|
||
jobs: | ||
screenshot-automation: | ||
name: Screenshot automation | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Decrypt AuthKey file | ||
run: cd ./fastlane/envfiles && ./decrypt_secrets.sh | ||
env: | ||
AUTH_KEY_FILE_DECRYPTKEY: ${{ secrets.AUTH_KEY_FILE_DECRYPTKEY }} | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-carthage | ||
with: | ||
path: ~/Carthage | ||
key: ${{ runner.os }}-carthage-${{ hashFiles('Cartfile.resolved') }} | ||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install sentry-cli | ||
run: curl -sL https://sentry.io/get-cli/ | bash | ||
|
||
- name: Install Dependencies | ||
run: gem install bundler:1.17.3 && bundle install | ||
|
||
- name: Prepare xcodeproj | ||
run: sh scripts/setup.sh | ||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run Fastlane snapshot | ||
run: bundle exec fastlane perform_snapshots | ||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
FASTLANE_USER: ${{ secrets.FASTLANE_USER }} | ||
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }} | ||
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | ||
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }} | ||
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
PILOT_APPLE_ID: ${{ secrets.PILOT_APPLE_ID }} | ||
SPACESHIP_CONNECT_API_ISSUER_ID: ${{ secrets.SPACESHIP_CONNECT_API_ISSUER_ID }} | ||
SPACESHIP_CONNECT_API_KEY_ID: ${{ secrets.SPACESHIP_CONNECT_API_KEY_ID }} | ||
SPACESHIP_CONNECT_API_KEY_FILEPATH: envfiles/AuthKey_KDAUTTM76R.p8 | ||
CI_RELEASE: true | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: screenshots | ||
path: fastlane/screenshots/ # or path/to/artifact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters