From ecc0761c36b90b71615f4d8618b9fc52f4ede4ec Mon Sep 17 00:00:00 2001 From: George Boukeas Date: Thu, 27 Jun 2024 14:19:24 +0100 Subject: [PATCH 1/2] [CERTTF-330] feat: add test workflow for Testflinger-enabled runner --- .github/workflows/testflinger-submit.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/testflinger-submit.yml diff --git a/.github/workflows/testflinger-submit.yml b/.github/workflows/testflinger-submit.yml new file mode 100644 index 000000000..46760e4c3 --- /dev/null +++ b/.github/workflows/testflinger-submit.yml @@ -0,0 +1,22 @@ +name: Submit a test job to Testflinger +on: + push: + branches: [CERTTF-330-testflinger-runner-poc] + workflow_dispatch: +jobs: + testflinger-submit: + runs-on: [self-hosted, testflinger] + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Submit job + uses: canonical/testflinger/.github/actions/submit@main + with: + poll: true + job: | + job_queue: hp-elitebook-850-g7-notebook-pc + test_data: + test_cmds: | + #!/usr/bin/env bash + set -x + ls -alR From 0a7ace11391238f3a20c686584be5fe83e368924 Mon Sep 17 00:00:00 2001 From: George Boukeas Date: Thu, 27 Jun 2024 15:54:39 +0100 Subject: [PATCH 2/2] [CERTTF-330] Make the workflow only manually triggerable --- .github/workflows/testflinger-submit.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testflinger-submit.yml b/.github/workflows/testflinger-submit.yml index 46760e4c3..7e57d52b1 100644 --- a/.github/workflows/testflinger-submit.yml +++ b/.github/workflows/testflinger-submit.yml @@ -1,8 +1,7 @@ name: Submit a test job to Testflinger on: - push: - branches: [CERTTF-330-testflinger-runner-poc] - workflow_dispatch: + workflow_dispatch: + jobs: testflinger-submit: runs-on: [self-hosted, testflinger]