Skip to content

Commit 51f405a

Browse files
committed
ci: add option for tests
1 parent 1cfe856 commit 51f405a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/actions/deploy-kotlin/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
gradle-cache-encryption-key:
55
description: 'The encryption key for the Gradle cache.'
66
required: false
7+
tests:
8+
description: 'Run tests'
9+
default: 'false'
710
runs:
811
using: composite
912
steps:
@@ -27,7 +30,7 @@ runs:
2730
- name: Publish release
2831
shell: bash
2932
if: "github.event_name == 'release'"
30-
run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache
33+
run: ./gradlew build publish ${{ inputs.tests && 'check' || '' }} -Pdeploy.kotlin=true -Pdeploy.native=false -Pffmpeg.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
3134

3235
- name: Set outputs
3336
id: vars
@@ -36,4 +39,4 @@ runs:
3639
- name: Publish snapshot
3740
shell: bash
3841
if: "github.event_name != 'release'"
39-
run: ./gradlew build publish -Pdeploy.native=false -Pdeploy.kotlin=true -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache
42+
run: ./gradlew build publish ${{ inputs.tests && 'check' || '' }} -Pdeploy.kotlin=true -Pdeploy.native=false -Pffmpeg.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache

.github/actions/deploy-ubuntu/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
gradle-cache-encryption-key:
55
description: 'The encryption key for the Gradle cache.'
66
required: false
7+
tests:
8+
description: 'Run tests'
9+
default: 'false'
710
runs:
811
using: composite
912
steps:
@@ -226,7 +229,7 @@ runs:
226229
- name: Publish release
227230
shell: bash
228231
if: "github.event_name == 'release'"
229-
run: ./gradlew build publish -Pdeploy.kotlin=false -Pdeploy.native=true -Pffmpeg.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
232+
run: ./gradlew build publish ${{ inputs.tests && 'check' || '' }} -Pdeploy.kotlin=false -Pdeploy.native=true -Pffmpeg.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ github.event.release.tag_name }} --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
230233

231234
- name: Set outputs
232235
id: vars
@@ -235,4 +238,4 @@ runs:
235238
- name: Publish snapshot
236239
shell: bash
237240
if: "github.event_name != 'release'"
238-
run: ./gradlew build publish -Pdeploy.kotlin=false -Pdeploy.native=true -Pffmpeg.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache
241+
run: ./gradlew build publish ${{ inputs.tests && 'check' || '' }} -Pdeploy.kotlin=false -Pdeploy.native=true -Pffmpeg.platform=${{ github.job }} -Pffmpeg.gpl=${{ matrix.gpl }} -Pdeploy.version=${{ steps.vars.outputs.sha_short }}-dev --console=plain --info --configure-on-demand --parallel --build-cache --configuration-cache

0 commit comments

Comments
 (0)