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

Add basic CI to build the subgraph in GA #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dapplion
Copy link

@dapplion dapplion commented Apr 24, 2020

Adds a basic CI step to build and deploy the subgraph in a containerized environment.

Rationale

This setup can be extended by moving code from aragon/aragon-court to set up blockchain state in the ganache instance which could be queried later in a test.

Feel free to inspect the build logs in my fork https://github.com/dapplion/court-subgraph/runs/617879740?check_suite_focus=true#step:3:821

Recreate

The setup can be recreated locally with one line in a single terminal instance

docker-compose -f ./scripts/docker-compose.yml up --abort-on-container-exit --build --force-recreate --renew-anon-volumes --timeout 0
        # --abort-on-container-exit: Only the test service should exit.
        #   Then, the overall exit code will the the test service exit code
        # --build: Make sure to apply test container possible changes
        # --force-recreate: Make sure to clear ephemeral container
        # --renew-anon-volumes: Make sure postgress and ganache data deleted
        # --timeout 0: Speed up teardown

@facuspagnuolo
Copy link
Contributor

This is great!

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