Skip to content

Commit

Permalink
Adding the workflow to validate the GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
fmacleal committed Jun 26, 2024
1 parent 7655c93 commit 4bf857f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/images/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -54,4 +54,27 @@ jobs:
docker run \
--env RSKJ_BRANCH="${{ env.RSKJ_BRANCH }}" \
--env FEDERATOR_BRANCH="${{ env.FEDERATOR_BRANCH }}" \
--rm ${{ env.TEST_TAG }}
--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 }}"

0 comments on commit 4bf857f

Please sign in to comment.