Skip to content

Commit

Permalink
Fixing inputs on the test step
Browse files Browse the repository at this point in the history
  • Loading branch information
fmacleal authored and marcos-iov committed Jul 31, 2024
1 parent d92cd9c commit fdde43e
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ env:
LATEST_TAG: ghcr.io/rsksmart/${{ github.event.repository.name }}/rit

jobs:
build-push-rit-action-image:
name: Test RIT Action docker image
build-push-rit-action-container-action:
name: Test RIT Action docker container-action
runs-on: ubuntu-latest
timeout-minutes: 60

Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Build and export locally Docker
uses: docker/build-push-action@v6
with:
context: .github/image
context: container-action/
load: true
tags: ${{ env.TEST_TAG }}

Expand Down Expand Up @@ -74,14 +74,14 @@ jobs:
- name: Build the RIT Action Container Image
uses: docker/build-push-action@v6
with:
context: .github/image
context: container-action/
tags: ${{ env.LATEST_TAG }}
labels: ${{ steps.meta.outputs.labels }}
load: true
push: true

test-rit-action:
needs: build-push-rit-action-image
needs: build-push-rit-action-container-action
name: GitHub Actions Test
runs-on: ubuntu-latest
timeout-minutes: 60
Expand All @@ -93,7 +93,7 @@ jobs:

- name: Test RIT Action
id: test-rit-action
uses: .github/
uses: ./container-action/
with:
rskj-branch: master
powpeg-node-branch: master
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/README.md → container-action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The output message of the integration tests. It will be:
## Example usage

```yaml
uses: docker://ghcr.io/rsksmart/rootstock-integration-tests/rit:latest
uses: rootstock-integration-tests@v1
with:
rskj-branch: master
powpeg-node-branch: master
Expand Down
2 changes: 1 addition & 1 deletion .github/action.yml → container-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ outputs:

runs:
using: docker
image: ./images/Dockerfile
image: Dockerfile
env:
INPUT_RSKJ_BRANCH: ${{ inputs.rskj-branch }}
INPUT_POWPEG_NODE_BRANCH: ${{ inputs.powpeg-node-branch }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ chmod +x ./configure.sh && chmod +x gradlew
POWPEG_VERSION=$(bash configure_gradle_powpeg.sh)
echo "POWPEG_VERSION=$POWPEG_VERSION"
./configure.sh
#./gradlew --info --no-daemon clean build -x test
./gradlew --info --no-daemon clean build -x test

echo -e "\n\n--------- Starting the configuration of RIT ---------\n\n"
cd /usr/src/
Expand All @@ -45,7 +45,7 @@ export LOG_LEVEL="$LOG_LEVEL"

echo -e "\n\n--------- Executing Rootstock Integration Tests ---------\n\n"
npm install -y
#npm run test-fail-fast
npm run test-fail-fast
STATUS=$?

echo -e "\n\n--------- RIT Tests Result ---------\n\n"
Expand Down

0 comments on commit fdde43e

Please sign in to comment.