forked from element-hq/element-x-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mise en place de l'intégration continue (#14)
- Loading branch information
Showing
12 changed files
with
46 additions
and
25 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
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 |
---|---|---|
|
@@ -7,15 +7,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Danger main check | ||
# Skip in forks, it doesn't work even with the fallback token | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
run: git submodule update --init --recursive | ||
- run: | | ||
npm install --save-dev @babel/plugin-transform-flow-strip-types | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
generate-github-pages: | ||
runs-on: ubuntu-latest | ||
# Skip in forks | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
steps: | ||
- name: ⏬ Checkout with LFS | ||
uses: nschloe/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,13 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
run: git submodule update --init --recursive | ||
- name: Run code quality check suite | ||
run: ./tools/check/check_code_quality.sh | ||
|
@@ -78,11 +80,13 @@ jobs: | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 21 | ||
uses: actions/setup-java@v4 | ||
|
@@ -118,11 +122,13 @@ jobs: | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 21 | ||
uses: actions/setup-java@v4 | ||
|
@@ -162,11 +168,13 @@ jobs: | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 21 | ||
uses: actions/setup-java@v4 | ||
|
@@ -202,11 +210,13 @@ jobs: | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 21 | ||
uses: actions/setup-java@v4 | ||
|
@@ -242,11 +252,13 @@ jobs: | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
run: git submodule update --init --recursive | ||
- name: Use JDK 21 | ||
uses: actions/setup-java@v4 | ||
|
@@ -277,7 +289,8 @@ jobs: | |
name: Project Check Suite | ||
runs-on: ubuntu-latest | ||
needs: [konsist, lint, ktlint, detekt] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -42,15 +42,17 @@ jobs: | |
enterprise: | ||
name: Create App Bundle Enterprise | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
concurrency: | ||
group: ${{ format('build-release-main-enterprise-{0}', github.sha) }} | ||
cancel-in-progress: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,13 @@ jobs: | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Add SSH private keys for submodule repositories | ||
uses: webfactory/[email protected] | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
with: | ||
ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} | ||
- name: Clone submodules | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }} | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
run: git submodule update --init --recursive | ||
- name: ☕️ Use JDK 21 | ||
uses: actions/setup-java@v4 | ||
|
@@ -83,6 +85,8 @@ jobs: | |
# https://github.com/codecov/codecov-action | ||
- name: ☂️ Upload coverage reports to codecov | ||
uses: codecov/codecov-action@v5 | ||
# Skip in forks | ||
if: ${{ github.repository == 'element-hq/element-x-android' && ('pull_request' != github.event_name || github.event.pull_request.head.repo.full_name == github.repository) }} | ||
with: | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|