-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,419 changed files
with
26,677 additions
and
14,792 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
**/snapshots/**/*.png filter=lfs diff=lfs merge=lfs -text | ||
**/docs/images-lfs/*.png filter=lfs diff=lfs merge=lfs -text | ||
libraries/mediaupload/impl/src/test/assets/* filter=lfs diff=lfs merge=lfs -text |
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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
- run: | | ||
npm install --save-dev @babel/plugin-transform-flow-strip-types | ||
- name: Danger | ||
uses: danger/[email protected].0 | ||
uses: danger/[email protected].1 | ||
with: | ||
args: "--dangerfile ./tools/danger/dangerfile.js" | ||
env: | ||
|
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 |
---|---|---|
|
@@ -15,13 +15,13 @@ jobs: | |
nightlyReports: | ||
name: Create kover report artifact and upload sonar result. | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'vector-im/element-x-android' }} | ||
if: ${{ github.repository == 'element-hq/element-x-android' }} | ||
steps: | ||
- name: ⏬ Checkout with LFS | ||
uses: nschloe/[email protected] | ||
|
||
- name: Use JDK 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
|
@@ -37,7 +37,7 @@ jobs: | |
|
||
- name: ✅ Upload kover report | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: kover-results | ||
path: | | ||
|
@@ -57,19 +57,19 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
- name: Configure gradle | ||
uses: gradle/gradle-build-action@v2.9.0 | ||
uses: gradle/gradle-build-action@v2.11.1 | ||
with: | ||
cache-read-only: ${{ github.ref != 'refs/heads/develop' }} | ||
- name: Dependency analysis | ||
run: ./gradlew dependencyCheckAnalyze $CI_GRADLE_ARG_PROPERTIES | ||
- name: Upload dependency analysis | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dependency-analysis | ||
path: build/reports/dependency-check-report.html |
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 |
---|---|---|
|
@@ -35,19 +35,19 @@ jobs: | |
# https://github.com/actions/checkout/issues/881 | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | ||
- name: Use JDK 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
- name: Configure gradle | ||
uses: gradle/gradle-build-action@v2.9.0 | ||
uses: gradle/gradle-build-action@v2.11.1 | ||
with: | ||
cache-read-only: ${{ github.ref != 'refs/heads/develop' }} | ||
- name: Run code quality check suite | ||
run: ./gradlew runQualityChecks $CI_GRADLE_ARG_PROPERTIES | ||
- name: Upload reports | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linting-report | ||
path: | | ||
|
@@ -60,7 +60,7 @@ jobs: | |
yarn add danger-plugin-lint-report --dev | ||
- name: Danger lint | ||
if: always() | ||
uses: danger/[email protected].0 | ||
uses: danger/[email protected].1 | ||
with: | ||
args: "--dangerfile ./tools/danger/dangerfile-lint.js" | ||
env: | ||
|
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 |
---|---|---|
|
@@ -2,33 +2,48 @@ name: Record screenshots | |
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [ labeled ] | ||
|
||
# Enrich gradle.properties for CI/CD | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3584m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError" -Dkotlin.incremental=false -XX:+UseParallelGC | ||
|
||
jobs: | ||
record: | ||
name: Record screenshots on branch ${{ github.ref_name }} | ||
name: Record screenshots on branch ${{ github.event.pull_request.head.ref || github.ref_name }} | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'Record-Screenshots' | ||
|
||
steps: | ||
- name: ⏬ Checkout with LFS | ||
- name: Remove Record-Screenshots label | ||
if: github.event.label.name == 'Record-Screenshots' | ||
uses: actions-ecosystem/action-remove-labels@v1 | ||
with: | ||
labels: Record-Screenshots | ||
- name: ⏬ Checkout with LFS (PR) | ||
if: github.event.label.name == 'Record-Screenshots' | ||
uses: nschloe/[email protected] | ||
with: | ||
persist-credentials: false | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: ⏬ Checkout with LFS (Branch) | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: nschloe/[email protected] | ||
with: | ||
persist-credentials: false | ||
- name: ☕️ Use JDK 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
# Add gradle cache, this should speed up the process | ||
- name: Configure gradle | ||
uses: gradle/gradle-build-action@v2.9.0 | ||
uses: gradle/gradle-build-action@v2.11.1 | ||
with: | ||
cache-read-only: ${{ github.ref != 'refs/heads/develop' }} | ||
- name: Record screenshots | ||
run: "./.github/workflows/scripts/recordScreenshots.sh" | ||
run: ./.github/workflows/scripts/recordScreenshots.sh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} | ||
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} | ||
|
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 |
---|---|---|
|
@@ -48,6 +48,9 @@ do | |
esac | ||
done | ||
|
||
BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
echo Branch used: $BRANCH | ||
|
||
if [[ -z ${TOKEN} ]]; then | ||
echo "No token specified, either set the env var GITHUB_TOKEN or use the --token option" | ||
exit 1 | ||
|
@@ -70,8 +73,6 @@ git config user.email "[email protected]" | |
git add -A | ||
git commit -m "Update screenshots" | ||
|
||
BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
|
||
echo "Pushing changes" | ||
git push "https://$TOKEN@github.com/$REPO.git" $BRANCH:refs/heads/$BRANCH | ||
git push "https://$TOKEN@github.com/$REPO.git" $BRANCH | ||
echo "Done!" |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Sync SAS strings | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# At 00:00 on every Monday UTC | ||
- cron: '0 0 * * 1' | ||
|
||
jobs: | ||
sync-sas-strings: | ||
runs-on: ubuntu-latest | ||
# Skip in forks | ||
if: github.repository == 'element-hq/element-x-android' | ||
# No concurrency required, runs every time on a schedule. | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Prerequisite dependencies | ||
run: | | ||
pip install requests | ||
- name: Run SAS String script | ||
run: ./tools/sas/import_sas_strings.py | ||
- name: Create Pull Request for SAS Strings | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: Sync SAS Strings | ||
title: Sync SAS Strings | ||
body: | | ||
- Update SAS Strings from matrix-doc. | ||
branch: sync-sas-strings | ||
base: develop | ||
|
||
|
Oops, something went wrong.