Skip to content

Commit

Permalink
Add parameters to pulbish app and skip tests (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
devcode11 authored Jan 11, 2025
1 parent 60a9635 commit 2119bc5
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/ubuntu-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 2119bc5

Please sign in to comment.