From c9bba4c35e9507a292053949967167b52e69a02a Mon Sep 17 00:00:00 2001 From: Alejandro Bueno Date: Tue, 1 Jun 2021 14:34:44 -0500 Subject: [PATCH 1/2] renamed tr-tests to tr-unit-tests --- .github/actions/{tr-tests => tr-unit-tests}/Dockerfile | 0 .github/actions/{tr-tests => tr-unit-tests}/README.md | 6 +++--- .github/actions/{tr-tests => tr-unit-tests}/action.yml | 0 .github/workflows/tr.unit.tests.yaml | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename .github/actions/{tr-tests => tr-unit-tests}/Dockerfile (100%) rename .github/actions/{tr-tests => tr-unit-tests}/README.md (91%) rename .github/actions/{tr-tests => tr-unit-tests}/action.yml (100%) diff --git a/.github/actions/tr-tests/Dockerfile b/.github/actions/tr-unit-tests/Dockerfile similarity index 100% rename from .github/actions/tr-tests/Dockerfile rename to .github/actions/tr-unit-tests/Dockerfile diff --git a/.github/actions/tr-tests/README.md b/.github/actions/tr-unit-tests/README.md similarity index 91% rename from .github/actions/tr-tests/README.md rename to .github/actions/tr-unit-tests/README.md index 5ec49500e3..71f843d0f8 100644 --- a/.github/actions/tr-tests/README.md +++ b/.github/actions/tr-unit-tests/README.md @@ -17,7 +17,7 @@ under the License. --> -# tr-tests Docker action +# tr-unit-tests Docker action This action runs the Traffic Router unit tests in an Alpine Docker container. ## Inputs @@ -43,12 +43,12 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: Run unit tests - uses: ./.github/actions/tr-tests + uses: ./.github/actions/tr-unit-tests ``` To run the tests locally: ```shell export GITHUB_WORKSPACE='/github/workspace'; -docker build -f .github/actions/tr-tests/Dockerfile -t tr-unit-tests .; +docker build -f .github/actions/tr-unit-tests/Dockerfile -t tr-unit-tests .; docker run --rm -te GITHUB_WORKSPACE -v "$(pwd):${GITHUB_WORKSPACE}" -w "$GITHUB_WORKSPACE" tr-unit-tests; ``` diff --git a/.github/actions/tr-tests/action.yml b/.github/actions/tr-unit-tests/action.yml similarity index 100% rename from .github/actions/tr-tests/action.yml rename to .github/actions/tr-unit-tests/action.yml diff --git a/.github/workflows/tr.unit.tests.yaml b/.github/workflows/tr.unit.tests.yaml index 0d4a55bc56..3191bae164 100644 --- a/.github/workflows/tr.unit.tests.yaml +++ b/.github/workflows/tr.unit.tests.yaml @@ -24,13 +24,13 @@ env: on: push: paths: - - .github/actions/tr-tests/** + - .github/actions/tr-unit-tests/** - .github/workflows/tr.unit.tests.yaml - traffic_router/** create: pull_request: paths: - - .github/actions/tr-tests/** + - .github/actions/tr-unit-tests/** - .github/workflows/tr.unit.tests.yaml - traffic_router/** types: [ opened, reopened, ready_for_review, synchronize ] @@ -57,7 +57,7 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: Run unit tests - uses: ./.github/actions/tr-tests + uses: ./.github/actions/tr-unit-tests - name: Upload Surefire Reports uses: actions/upload-artifact@v2 if: ${{ failure() }} From 9a593ef2b6546df405f570f8dcb259b9e2fddc14 Mon Sep 17 00:00:00 2001 From: Alejandro Bueno Date: Mon, 7 Jun 2021 11:54:22 -0500 Subject: [PATCH 2/2] made changes to .githhub/workflows/tr.unit.tests.yaml to clarify wording --- .github/workflows/tr.unit.tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tr.unit.tests.yaml b/.github/workflows/tr.unit.tests.yaml index 3191bae164..9e17e3e5ad 100644 --- a/.github/workflows/tr.unit.tests.yaml +++ b/.github/workflows/tr.unit.tests.yaml @@ -56,7 +56,7 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - name: Run unit tests + - name: Run Traffic Router unit tests uses: ./.github/actions/tr-unit-tests - name: Upload Surefire Reports uses: actions/upload-artifact@v2