From 6a34476cd5b713022dabc812987724fcf3a54dee Mon Sep 17 00:00:00 2001 From: Bruce Bujon Date: Fri, 13 Sep 2024 06:15:15 +0200 Subject: [PATCH] feat: Improve existing workflow tests --- .../{payload.json => payload-pull-request.json} | 0 .../tests/add-milestone-to-pull-requests/test-pull-request.sh | 3 +++ .github/workflows/tests/add-milestone-to-pull-requests/test.sh | 3 --- .../{payload.json => payload-create.json} | 0 .../workflows/tests/increment-milestone-on-tag/test-create.sh | 3 +++ .github/workflows/tests/increment-milestone-on-tag/test.sh | 3 --- 6 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/tests/add-milestone-to-pull-requests/{payload.json => payload-pull-request.json} (100%) create mode 100755 .github/workflows/tests/add-milestone-to-pull-requests/test-pull-request.sh delete mode 100755 .github/workflows/tests/add-milestone-to-pull-requests/test.sh rename .github/workflows/tests/increment-milestone-on-tag/{payload.json => payload-create.json} (100%) create mode 100755 .github/workflows/tests/increment-milestone-on-tag/test-create.sh delete mode 100755 .github/workflows/tests/increment-milestone-on-tag/test.sh diff --git a/.github/workflows/tests/add-milestone-to-pull-requests/payload.json b/.github/workflows/tests/add-milestone-to-pull-requests/payload-pull-request.json similarity index 100% rename from .github/workflows/tests/add-milestone-to-pull-requests/payload.json rename to .github/workflows/tests/add-milestone-to-pull-requests/payload-pull-request.json diff --git a/.github/workflows/tests/add-milestone-to-pull-requests/test-pull-request.sh b/.github/workflows/tests/add-milestone-to-pull-requests/test-pull-request.sh new file mode 100755 index 00000000000..d26fd3f8d9b --- /dev/null +++ b/.github/workflows/tests/add-milestone-to-pull-requests/test-pull-request.sh @@ -0,0 +1,3 @@ +#!/bin/bash +source $(dirname "$0")/../env.sh +testworkflow pull_request diff --git a/.github/workflows/tests/add-milestone-to-pull-requests/test.sh b/.github/workflows/tests/add-milestone-to-pull-requests/test.sh deleted file mode 100755 index 251be43b484..00000000000 --- a/.github/workflows/tests/add-milestone-to-pull-requests/test.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -source $(dirname "$0")/../env.sh -act pull_request --workflows .github/workflows/add-milestone-to-pull-requests.yaml --eventpath .github/workflows/tests/add-milestone-to-pull-requests/payload.json $COMMON_ACT_ARGS diff --git a/.github/workflows/tests/increment-milestone-on-tag/payload.json b/.github/workflows/tests/increment-milestone-on-tag/payload-create.json similarity index 100% rename from .github/workflows/tests/increment-milestone-on-tag/payload.json rename to .github/workflows/tests/increment-milestone-on-tag/payload-create.json diff --git a/.github/workflows/tests/increment-milestone-on-tag/test-create.sh b/.github/workflows/tests/increment-milestone-on-tag/test-create.sh new file mode 100755 index 00000000000..53cd2a74d34 --- /dev/null +++ b/.github/workflows/tests/increment-milestone-on-tag/test-create.sh @@ -0,0 +1,3 @@ +#!/bin/bash +source $(dirname "$0")/../env.sh +testworkflow create diff --git a/.github/workflows/tests/increment-milestone-on-tag/test.sh b/.github/workflows/tests/increment-milestone-on-tag/test.sh deleted file mode 100755 index d027f692b90..00000000000 --- a/.github/workflows/tests/increment-milestone-on-tag/test.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -source $(dirname "$0")/../env.sh -act create --workflows .github/workflows/increment-milestone-on-tag.yaml --eventpath .github/workflows/tests/increment-milestone-on-tag/payload.json $COMMON_ACT_ARGS