Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow: Add parameters to publish app and skip tests #3

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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