mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 20:38:40 +00:00
Merge pull request #201 from vector-im/feature/bma/improveCI
Improve ci
This commit is contained in:
@@ -62,3 +62,5 @@ jobs:
|
|||||||
run: ./gradlew compileReleaseSources $CI_GRADLE_ARG_PROPERTIES
|
run: ./gradlew compileReleaseSources $CI_GRADLE_ARG_PROPERTIES
|
||||||
- name: Compile nightly sources
|
- name: Compile nightly sources
|
||||||
run: ./gradlew compileNightlySources $CI_GRADLE_ARG_PROPERTIES
|
run: ./gradlew compileNightlySources $CI_GRADLE_ARG_PROPERTIES
|
||||||
|
- name: Compile samples minimal
|
||||||
|
run: ./gradlew :samples:minimal:assemble $CI_GRADLE_ARG_PROPERTIES
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
name: Maestro
|
name: Maestro
|
||||||
|
|
||||||
|
# Run this flow only on pull request, and only when the pull request has been approved, to limit our usage of maestro cloud.
|
||||||
|
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-when-a-pull-request-is-approved
|
||||||
on:
|
on:
|
||||||
pull_request: { }
|
pull_request_review:
|
||||||
push:
|
types: [submitted]
|
||||||
branches: [ main, develop ]
|
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
@@ -14,12 +15,12 @@ jobs:
|
|||||||
maestro-cloud:
|
maestro-cloud:
|
||||||
name: Maestro test suite
|
name: Maestro test suite
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref != 'refs/heads/main'
|
if: github.event.review.state == 'approved'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
# Allow all jobs on develop. Just one per PR.
|
# Allow one per PR.
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.ref == 'refs/heads/develop' && format('maestro-develop-{0}', github.sha) || format('maestro-debug-{0}', github.ref) }}
|
group: ${{ format('maestro-{0}', github.ref) }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user