From 6e7684ce643677759a9fa74e7927cabe65f47fae Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Mon, 16 Aug 2021 11:16:31 +0100 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 242132bd..a7449fea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,18 +1,30 @@ name: Test Netdisco on: + workflow_dispatch: + inputs: + debug_enabled: + description: 'Run debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false push: branches: - master jobs: build: runs-on: ubuntu-latest + container: + image: 'netdisco/netdisco:latest-do' steps: - uses: actions/checkout@master - name: Get the Tag id: get_tag run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/} - - uses: shogo82148/actions-setup-perl@v1.12.2 - with: - perl-version: 'latest' - - run: 'cpanm --installdeps .' - - run: 'prove -vl xt/*.t' +# - uses: shogo82148/actions-setup-perl@v1.12.2 +# with: +# perl-version: 'latest' + # Enable tmate debugging of manually-triggered workflows if the input option was provided + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}. +# - run: 'cpanm --installdeps .' +# - run: 'prove -vl xt/*.t'