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