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

Run Keep Client integration tests in CI #3589

Merged
merged 8 commits into from
May 31, 2023

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented May 24, 2023

We add Keep Client's integration tests execution to the CI process. The tests will be executed after the client build and unit tests pass.

Please note that with the current configuration, the integration tests running command will execute also unit tests. To change this behavior we will need to add //go:build !integration to all the non-integration test files. (see: #3592)

Refs: #3594

nkuba added 7 commits May 24, 2023 12:34
We add Keep Client's integration tests execution to the CI process.
The tests will be executed after client build and unit tests pass.
We don't want to build the same image twice, we want to share it between
the jobs. This is a solution where the image is saved in the disk
storage and passed to another job.
This solution is based on docker/build-push-action#225 (comment)
Since build-push-action doesn't support outputing an image to multiple outputs
we need to save it in a separate step. See: moby/buildkit#1555
Once multiple outputs are supported we can replace this step with
`outputs` property configured in `Build Docker Build Image`:
  outputs: |
    type=image
    type=docker,dest=/tmp/go-build-env-image.tar
It expects a path to a directory not the destination file.
We should use v3 for consistency with other actions.
The server is now is running with bitcoind deamon instead of bcoin,
which made the error message change.
@nkuba nkuba marked this pull request as ready for review May 30, 2023 10:56
@nkuba nkuba requested a review from michalinacienciala May 30, 2023 10:56
@nkuba nkuba requested review from pdyraga and lukasz-zimnoch May 30, 2023 11:00
@michalinacienciala michalinacienciala merged commit bfb505f into main May 31, 2023
@michalinacienciala michalinacienciala deleted the gh-workflow-client-integration-tests branch May 31, 2023 12:39
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