vector-im/element-x-ios/issues/13 - Towncrier setup for PR builds
This commit is contained in:
committed by
Stefan Ceriu
parent
e0990fc57d
commit
71da356aaa
4
.github/workflows/danger.yml
vendored
4
.github/workflows/danger.yml
vendored
@@ -7,9 +7,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
name: Danger
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/cache@v2
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.danger-swift
|
||||
key: danger-swift-cache-key
|
||||
|
||||
23
.github/workflows/release-alpha.yml
vendored
23
.github/workflows/release-alpha.yml
vendored
@@ -33,10 +33,10 @@ jobs:
|
||||
cancel-in-progress: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Cache Ruby gems
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor/bundle
|
||||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
||||
@@ -52,6 +52,13 @@ jobs:
|
||||
run: |
|
||||
bundle config path vendor/bundle
|
||||
bundle install --jobs 4 --retry 3
|
||||
|
||||
- uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: '3.x'
|
||||
cache: 'pip'
|
||||
|
||||
- run: pip install -r requirements.txt
|
||||
|
||||
# Import alpha release private signing certificate
|
||||
- name: Import signing certificate
|
||||
@@ -63,7 +70,7 @@ jobs:
|
||||
# Main step
|
||||
# The Ad-hoc release link will be referenced as 'DIAWI_FILE_LINK'
|
||||
# and QR link as 'DIAWI_QR_CODE_LINK' when the Diawi upload succeed
|
||||
- name: Build Ad-hoc release and send it to Diawi
|
||||
- name: Build alpha
|
||||
run: bundle exec fastlane alpha
|
||||
env:
|
||||
# Automatically bypass 2FA upgrade if possible on Apple account.
|
||||
@@ -74,10 +81,18 @@ jobs:
|
||||
DIAWI_API_TOKEN: ${{ secrets.DIAWI_API_TOKEN }}
|
||||
GITHUB_PR_NUMBER: ${{ github.event.number }}
|
||||
|
||||
- name: Add or update PR comment with Ad-hoc release informations
|
||||
- name: Read version_changes.md
|
||||
id: read_changes
|
||||
uses: juliangruber/read-file-action@v1
|
||||
with:
|
||||
path: ./version_changes.md
|
||||
|
||||
- name: Add release notes and Diawi info
|
||||
uses: NejcZdovc/comment-pr@v1
|
||||
with:
|
||||
message: |
|
||||
${{ steps.read_changes.outputs.content }}
|
||||
|
||||
:iphone: Scan the QR code below to install the build for this PR.
|
||||
:lock: This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.
|
||||
|
||||
|
||||
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@@ -17,9 +17,9 @@ jobs:
|
||||
cancel-in-progress: true
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/cache@v2
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor/bundle
|
||||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
- name: Bundle install
|
||||
run: |
|
||||
bundle config path vendor/bundle
|
||||
bundle install --jobs 4 --retry 3
|
||||
bundle install --jobs 4 --retry 3
|
||||
|
||||
- name: Run tests
|
||||
run: bundle exec fastlane tests
|
||||
|
||||
Reference in New Issue
Block a user