mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:12:26 +00:00
Fix formatting .. according to Zed rules anyway
This commit is contained in:
@@ -4,7 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * 1-5'
|
- cron: "0 2 * * 1-5"
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
name: Automatic Calendar Version
|
name: Automatic Calendar Version
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# At 03:00 UTC every Tuesday in preparation for an RC.
|
# At 03:00 UTC every Tuesday in preparation for an RC.
|
||||||
# The tool assumes the release is published in 6-days (the following Monday).
|
# The tool assumes the release is published in 6-days (the following Monday).
|
||||||
# Note: Most of these runs will be no-op until the release month changes.
|
# Note: Most of these runs will be no-op until the release month changes.
|
||||||
- cron: '0 3 * * 2'
|
- cron: "0 3 * * 2"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
automatic-calendar-version:
|
automatic-calendar-version:
|
||||||
runs-on: macos-26
|
runs-on: macos-26
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
|
||||||
# Skip in forks
|
# Skip in forks
|
||||||
if: github.repository == 'element-hq/element-x-ios'
|
if: github.repository == 'element-hq/element-x-ios'
|
||||||
steps:
|
steps:
|
||||||
@@ -25,8 +25,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run:
|
run: source ci_scripts/ci_common.sh && setup_github_actions_environment
|
||||||
source ci_scripts/ci_common.sh && setup_github_actions_environment
|
|
||||||
|
|
||||||
- name: Bump the CalVer if needed
|
- name: Bump the CalVer if needed
|
||||||
run: swift run -q tools bump-calendar-version
|
run: swift run -q tools bump-calendar-version
|
||||||
|
|||||||
@@ -7,20 +7,19 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [develop]
|
||||||
paths:
|
paths:
|
||||||
- 'compound-ios/**'
|
- "compound-ios/**"
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
paths:
|
paths:
|
||||||
- 'compound-ios/**'
|
- "compound-ios/**"
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|
||||||
runs-on: macos-26
|
runs-on: macos-26
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
|
||||||
@@ -31,47 +30,46 @@ jobs:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: nschloe/action-cached-lfs-checkout@385a8ecc719e50b8c71af6ab01a624b486b7c3bc # v1.2.5
|
- uses: nschloe/action-cached-lfs-checkout@385a8ecc719e50b8c71af6ab01a624b486b7c3bc # v1.2.5
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Configure Xcode 26
|
- name: Configure Xcode 26
|
||||||
run: sudo xcode-select -s /Applications/Xcode_26.4.app
|
run: sudo xcode-select -s /Applications/Xcode_26.4.app
|
||||||
|
|
||||||
- name: Install sourcery
|
|
||||||
run: brew install sourcery
|
|
||||||
|
|
||||||
- name: Generate preview tests
|
|
||||||
working-directory: compound-ios
|
|
||||||
run: sourcery --config Tools/Sourcery/PreviewTestsConfig.yml
|
|
||||||
|
|
||||||
- name: Create simulator
|
- name: Install sourcery
|
||||||
run: xcrun simctl create "Snapshots" "iPhone SE (3rd generation)" "com.apple.CoreSimulator.SimRuntime.iOS-26-4"
|
run: brew install sourcery
|
||||||
|
|
||||||
- name: Run tests
|
- name: Generate preview tests
|
||||||
working-directory: compound-ios
|
working-directory: compound-ios
|
||||||
run: set -o pipefail && xcodebuild test -scheme 'Compound' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=Snapshots,OS=26.4' -skipPackagePluginValidation -resultBundlePath Logs/CompoundTests.xcresult | xcbeautify --renderer github-actions
|
run: sourcery --config Tools/Sourcery/PreviewTestsConfig.yml
|
||||||
|
|
||||||
- name: Zip artifacts
|
- name: Create simulator
|
||||||
if: failure() # We only care about artefacts if the tests fail
|
run: xcrun simctl create "Snapshots" "iPhone SE (3rd generation)" "com.apple.CoreSimulator.SimRuntime.iOS-26-4"
|
||||||
working-directory: compound-ios
|
|
||||||
run: zip -r Logs/CompoundTests.xcresult.zip Logs/CompoundTests.xcresult/
|
|
||||||
|
|
||||||
- name: Archive artifacts
|
- name: Run tests
|
||||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
working-directory: compound-ios
|
||||||
if: failure() # We only care about artefacts if the tests fail
|
run: set -o pipefail && xcodebuild test -scheme 'Compound' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=Snapshots,OS=26.4' -skipPackagePluginValidation -resultBundlePath Logs/CompoundTests.xcresult | xcbeautify --renderer github-actions
|
||||||
with:
|
|
||||||
name: test-results
|
|
||||||
path: compound-ios/Logs/CompoundTests.xcresult.zip
|
|
||||||
retention-days: 1
|
|
||||||
if-no-files-found: ignore
|
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Zip artifacts
|
||||||
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
|
if: failure() # We only care about artefacts if the tests fail
|
||||||
with:
|
working-directory: compound-ios
|
||||||
fail_ci_if_error: false
|
run: zip -r Logs/CompoundTests.xcresult.zip Logs/CompoundTests.xcresult/
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
xcode: true
|
- name: Archive artifacts
|
||||||
xcode_archive_path: compound-ios/Logs/CompoundTests.xcresult
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
flags: compound
|
if: failure() # We only care about artefacts if the tests fail
|
||||||
|
with:
|
||||||
|
name: test-results
|
||||||
|
path: compound-ios/Logs/CompoundTests.xcresult.zip
|
||||||
|
retention-days: 1
|
||||||
|
if-no-files-found: ignore
|
||||||
|
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
|
||||||
|
with:
|
||||||
|
fail_ci_if_error: false
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
xcode: true
|
||||||
|
xcode_archive_path: compound-ios/Logs/CompoundTests.xcresult
|
||||||
|
flags: compound
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: Danger CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [ labeled, synchronize, opened, reopened ]
|
types: [labeled, synchronize, opened, reopened]
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ name: Integration tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * 1-5'
|
- cron: "0 2 * * 1-5"
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
@@ -25,8 +25,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run:
|
run: source ci_scripts/ci_common.sh && setup_github_actions_environment
|
||||||
source ci_scripts/ci_common.sh && setup_github_actions_environment
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: swift run -q tools ci integration-tests
|
run: swift run -q tools ci integration-tests
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Post-release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'release/**'
|
- "release/**"
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
|
|
||||||
if: >
|
if: >
|
||||||
github.event.label.name == 'record-snapshots' &&
|
github.event.label.name == 'record-snapshots' &&
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: Open Translations PR
|
|||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# At 03:00 on every Monday UTC
|
# At 03:00 on every Monday UTC
|
||||||
- cron: '0 3 * * 1'
|
- cron: "0 3 * * 1"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
open-translations-pr:
|
open-translations-pr:
|
||||||
runs-on: macos-26
|
runs-on: macos-26
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
|
||||||
# Skip in forks
|
# Skip in forks
|
||||||
if: github.repository == 'element-hq/element-x-ios'
|
if: github.repository == 'element-hq/element-x-ios'
|
||||||
steps:
|
steps:
|
||||||
@@ -21,15 +21,14 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run:
|
run: source ci_scripts/ci_common.sh && setup_github_actions_translations_environment
|
||||||
source ci_scripts/ci_common.sh && setup_github_actions_translations_environment
|
|
||||||
|
|
||||||
- name: Download All Translations
|
- name: Download All Translations
|
||||||
run: swift run -q tools download-strings --all-languages
|
run: swift run -q tools download-strings --all-languages
|
||||||
|
|
||||||
- name: Verify Translations
|
- name: Verify Translations
|
||||||
run: swift run -q tools locheck
|
run: swift run -q tools locheck
|
||||||
|
|
||||||
- name: SAS Translations
|
- name: SAS Translations
|
||||||
run: swift run -q tools generate-sas
|
run: swift run -q tools generate-sas
|
||||||
|
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
github.repository == 'element-hq/element-x-ios'
|
github.repository == 'element-hq/element-x-ios'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
|
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
|
||||||
with:
|
with:
|
||||||
project-url: https://github.com/orgs/element-hq/projects/81
|
project-url: https://github.com/orgs/element-hq/projects/81
|
||||||
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||||
|
|
||||||
move_element_x_issues:
|
move_element_x_issues:
|
||||||
name: ElementX issues to ElementX project board
|
name: ElementX issues to ElementX project board
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
github.repository == 'element-hq/element-x-ios'
|
github.repository == 'element-hq/element-x-ios'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
|
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
|
||||||
with:
|
with:
|
||||||
project-url: https://github.com/orgs/element-hq/projects/43
|
project-url: https://github.com/orgs/element-hq/projects/43
|
||||||
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * 1-5'
|
- cron: "0 2 * * 1-5"
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ name: Unit Tests (Enterprise)
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [develop]
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Tests (Enterprise)
|
name: Tests (Enterprise)
|
||||||
runs-on: macos-26
|
runs-on: macos-26
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
|
|
||||||
# Skip in forks
|
# Skip in forks
|
||||||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
|
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
|
|
||||||
@@ -33,19 +33,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run: source ci_scripts/ci_common.sh && setup_github_actions_environment
|
run: source ci_scripts/ci_common.sh && setup_github_actions_environment
|
||||||
|
|
||||||
- name: Configure Enterprise
|
- name: Configure Enterprise
|
||||||
run: swift run -q pipeline configure-element-pro
|
run: swift run -q pipeline configure-element-pro
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: swift run -q tools ci unit-tests --skip-previews
|
run: swift run -q tools ci unit-tests --skip-previews
|
||||||
|
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
# We only care about artefacts if the tests fail
|
# We only care about artefacts if the tests fail
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: Results
|
name: Results
|
||||||
path: test_output/UnitTests.zip
|
path: test_output/UnitTests.zip
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ name: Unit Tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [develop]
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user