Skip to content

Commit 9e98e9f

Browse files
committed
change test_path to module and clean up workflow
1 parent 4a8b3c3 commit 9e98e9f

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/e2e-suite.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
description: 'Use minimal test account'
88
required: false
99
default: 'false'
10-
test_path:
11-
description: "The path from 'test/integration' to the target to be tested, e.g. 'cli'"
10+
module:
11+
description: "The module from 'test/integration' to the target to be tested, e.g. 'cli, domains, events, etc'"
1212
required: false
1313
sha:
1414
description: 'The hash value of the commit.'
15-
required: false
15+
required: true
1616
default: ''
1717
pull_request_number:
1818
description: 'The number of the PR. Ensure sha value is provided'
@@ -28,15 +28,6 @@ jobs:
2828
runs-on: ubuntu-latest
2929
if: github.event_name == 'workflow_dispatch' && inputs.sha != '' || github.event_name == 'push' || github.event_name == 'pull_request'
3030
steps:
31-
- name: Validate Test Path
32-
uses: actions-ecosystem/action-regex-match@v2
33-
id: validate-tests
34-
if: ${{ inputs.test_path != '' }}
35-
with:
36-
text: ${{ inputs.test_path }}
37-
regex: '[^a-z0-9-:.\/_]' # Tests validation
38-
flags: gi
39-
4031
- name: Checkout Repository with SHA
4132
if: ${{ inputs.sha != '' }}
4233
uses: actions/checkout@v4
@@ -104,8 +95,7 @@ jobs:
10495
run: |
10596
timestamp=$(date +'%Y%m%d%H%M')
10697
report_filename="${timestamp}_cli_test_report.xml"
107-
make testint TEST_ARGS="--junitxml=${report_filename}"
108-
if: ${{ steps.validate-tests.outputs.match == '' || inputs.test_path == '' }}
98+
make testint TEST_ARGS="--junitxml=${report_filename}" MODULE="${{ inputs.module }}"
10999
env:
110100
LINODE_CLI_TOKEN: ${{ env.LINODE_CLI_TOKEN }}
111101

0 commit comments

Comments
 (0)