From 4bf857f5f4753d61b0f40fe84d7bf08a210e66cb Mon Sep 17 00:00:00 2001 From: fmacleal Date: Wed, 26 Jun 2024 18:02:56 +0200 Subject: [PATCH] Adding the workflow to validate the GH Action --- .github/images/entrypoint.sh | 4 ++-- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/images/entrypoint.sh b/.github/images/entrypoint.sh index ab843aca..5ec89467 100644 --- a/.github/images/entrypoint.sh +++ b/.github/images/entrypoint.sh @@ -40,8 +40,8 @@ STATUS=$? echo -e "\n\n--------- RIT Tests Result ---------\n\n" if [ $STATUS -ne 0 ]; then - MESSAGE="Rootstock Integration Tests Result: FAILED" + MESSAGE="Rootstock Integration Tests Status: FAILED" else - MESSAGE="Rootstock Integration Tests Result: PASSED" + MESSAGE="Rootstock Integration Tests Status: PASSED" fi echo -e "$MESSAGE" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4919573e..2d7fb19b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: test-rit-docker: name: Test RIT Action docker image runs-on: ubuntu-latest - timeout-minutes: 120 + timeout-minutes: 60 services: registry: @@ -54,4 +54,27 @@ jobs: docker run \ --env RSKJ_BRANCH="${{ env.RSKJ_BRANCH }}" \ --env FEDERATOR_BRANCH="${{ env.FEDERATOR_BRANCH }}" \ - --rm ${{ env.TEST_TAG }} \ No newline at end of file + --rm ${{ env.TEST_TAG }} + + test-rit-action: + name: GitHub Actions Test + runs-on: ubuntu-latest + timeout-minutes: 60 + + steps: + - name: Checkout + id: checkout + uses: actions/checkout@v4 + + - name: Test Local RIT Action + id: test-rit-action + uses: .github/action.yml + with: + rskj-branch: master + federator-branch: master + + - name: Print RIT Status and Message + id: output + run: | + echo "RIT Status = ${{ steps.test-action.outputs.status }}" + echo "RIT Message = ${{ steps.test-action.outputs.message }}" \ No newline at end of file