Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: a collection contract integration test #15

Closed
wants to merge 1 commit into from

Conversation

Kynea0b
Copy link

@Kynea0b Kynea0b commented Feb 15, 2024

Overview

Please review this file only.

.github/workflows/tests-contracts.yaml

This is an integration test that performs "submessage/reply" using the packages/finschia-std library from the built collection contract.

@Kynea0b Kynea0b changed the title feat: add an action to test contract on CI CI: a collection contract integration test Feb 15, 2024
@Kynea0b Kynea0b self-assigned this Feb 15, 2024

- name: Docker pull
run: |
docker pull finschia/finschianode:2.0.1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not hard coding.

Comment on lines +27 to +41
- name: Set configure file
run: |
export FNSAD="docker run -i --rm -p 26656:26656 -p 26657:26657 -v ${pwd}/.finschia:/root/.finschia ${{ env.TEST_DOCKER_IMAGE }} fnsad"
./init_single.sh
shell: bash

- name: Start docker container
id: docker_start
run: |
container_id=$(docker run -d \
-p 26656:26656 -p 26657:26657 \
-v ${pwd}/.finschia:/root/.finschia \
${{ env.TEST_DOCKER_IMAGE }} fnsad start)
echo "container_id=$container_id" >> "$GITHUB_OUTPUT"
sleep 5
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kynea0b
Copy link
Author

Kynea0b commented Feb 19, 2024

#16

Replace it with this PR.

@Kynea0b Kynea0b closed this Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants