added option to skip integration tests

This commit is contained in:
Vadim 2024-03-14 20:54:56 +01:00
parent 846a2b2254
commit d98b2a62ff

View file

@ -22,16 +22,23 @@ on:
description: "Release notes"
required: true
type: string
run-integration-tests:
description: "Run integration tests"
required: true
type: boolean
default: true
jobs:
run-integration-tests:
name: Run integration tests
if: ${{ inputs.run-integration-tests }}
uses: ./.github/workflows/run_integration_tests.yml
secrets: inherit
build-android:
name: Build Android (.${{ matrix.binary-type }})
needs: [run-integration-tests]
if: always() && (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped')
strategy:
matrix:
binary-type: [apk, appbundle]
@ -46,6 +53,7 @@ jobs:
build-ios:
name: Build iOS (.ipa)
needs: [run-integration-tests]
if: always() && (needs.run-integration-tests.result == 'success' || needs.run-integration-tests.result == 'skipped')
uses: ./.github/workflows/build_ipa.yml
secrets: inherit
with:
@ -54,6 +62,7 @@ jobs:
generate-release-notes:
name: Generate release notes
needs: [build-android, build-ios]
runs-on: ubuntu-latest
steps:
- name: Generate release notes
@ -69,7 +78,7 @@ jobs:
create-github-release:
name: Create Github release
needs: [build-android, build-ios, generate-release-notes]
needs: [generate-release-notes]
runs-on: ubuntu-latest
if: false
permissions:
@ -119,7 +128,7 @@ jobs:
create-google-play-release:
name: Create Google Play release
needs: [create-github-release]
needs: [generate-release-notes]
runs-on: ubuntu-latest
if: false
steps:
@ -189,7 +198,7 @@ jobs:
create-app-store-release:
name: Create App Store release
needs: [create-github-release]
needs: [generate-release-notes]
runs-on: macos-13
if: false
steps: