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

Issue #4: Add Github Actions to run tests #7

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

jahabeebs
Copy link
Member

Closes #4

Description

I changed the tests to run on each PR. I think the tests are running properly, there's just one test failing. Do you think this is a configuration issue or expected? Here's the latest test run:

https://github.com/open-dollar/od-relayer/actions/runs/7187980493/job/19576705177

@jahabeebs jahabeebs self-assigned this Dec 12, 2023
echo OP_GOERLI_DEPLOYER_PK="${{ secrets.TEST_DEPLOYER_PK }}" >> .env
echo ARB_GOERLI_RPC="${{ secrets.ARB_GOERLI_RPC }}" >> .env
echo ARB_MAINNET_RPC="${{ secrets.ARB_MAINNET_RPC }}" >> .env
cat .env
Copy link
Member

Choose a reason for hiding this comment

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

maybe remove the cat, since we dont need to display the env

Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed the cat command and moved this entire "create .env" job into the env category that we had already. It runs successfully:

https://github.com/open-dollar/od-relayer/actions/runs/7213145447/job/19652349583


concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

env:
FOUNDRY_PROFILE: ci
Copy link
Member

Choose a reason for hiding this comment

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

Can't we do the env stuff here rather than creating a file?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, fixed


concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
Copy link
Member

Choose a reason for hiding this comment

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

Why cancel runs for other PRs?

Copy link
Member Author

Choose a reason for hiding this comment

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

this section just makes sure that if someone is pushing several commits to the same branch/PR then it will cancel the one that's already in-progress and run just the latest one. I think it's useful if someone is developing on a specific PR for example and they push 3 commits in 2 minutes then it will make sure that only the latest job will be run to completion. do you think it's better to take it out?

@jahabeebs jahabeebs merged commit d09b5b2 into dev Dec 20, 2023
1 check failed
@pi0neerpat pi0neerpat deleted the feature/4-add-github-actions-to-run-tests branch April 21, 2024 21:54
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.

Add Github Actions to run tests
2 participants