From 9821fd790ec7c8ab199923b27b859a5ee956582a Mon Sep 17 00:00:00 2001 From: devcode11 <80094366+devcode11@users.noreply.github.com> Date: Tue, 27 Aug 2024 01:42:10 +0530 Subject: [PATCH] Add parameters to pulbish app and skip tests --- .github/workflows/ubuntu-tests.yaml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ubuntu-tests.yaml b/.github/workflows/ubuntu-tests.yaml index 53ace6af2..9bbf43243 100644 --- a/.github/workflows/ubuntu-tests.yaml +++ b/.github/workflows/ubuntu-tests.yaml @@ -16,12 +16,19 @@ name: ubuntu-tests -on: workflow_dispatch - -# on: -# pull_request: -# branches: -# - main +on: + workflow_dispatch: + inputs: + publishTestApp: + description: 'Publish test application' + type: boolean + default: false + required: true + runTests: + description: 'Run tests' + type: boolean + default: true + required: true jobs: ubuntu-jammy-tests: @@ -139,11 +146,20 @@ jobs: run: sudo meson install -C builddir working-directory: containers/toolbox + - name: Publish app + if: ${{ inputs.publishTestApp }} + uses: actions/upload-artifact@v4 + with: + name: testing-toolbox + path: /usr/local/bin/toolbox + - name: Unit tests + if: ${{ inputs.runTests }} run: meson test -C builddir --verbose working-directory: containers/toolbox - name: System tests + if: ${{ inputs.runTests }} run: | bats --timing \ test/system/001-version.bats \