Update test.yml
This commit is contained in:
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
@@ -1,18 +1,30 @@
|
|||||||
name: Test Netdisco
|
name: Test Netdisco
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
debug_enabled:
|
||||||
|
description: 'Run debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: 'netdisco/netdisco:latest-do'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Get the Tag
|
- name: Get the Tag
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/}
|
run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/}
|
||||||
- uses: shogo82148/actions-setup-perl@v1.12.2
|
# - uses: shogo82148/actions-setup-perl@v1.12.2
|
||||||
with:
|
# with:
|
||||||
perl-version: 'latest'
|
# perl-version: 'latest'
|
||||||
- run: 'cpanm --installdeps .'
|
# Enable tmate debugging of manually-triggered workflows if the input option was provided
|
||||||
- run: 'prove -vl xt/*.t'
|
- 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'
|
||||||
|
|||||||
Reference in New Issue
Block a user