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

Ensure the e2e tests pass in the dev container #1942

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

Adirelle
Copy link
Contributor

This is an early, draft pull request.

As discussed on discord, its purpose is to have the e2e tests passing in the dev container, and also to use this container to run all the e2e tests in CI.

@jdx jdx merged commit d13511e into jdx:main Apr 23, 2024
6 checks passed
@@ -112,7 +112,7 @@ run = 'docker build $root -f $root/packaging/dev/Dockerfile -t ghcr.io/jdx/mise:

[tasks."docker:cargo"]
description = "run cargo inside of development docker container"
run = 'docker run -ti --rm -v $root:/mise -w /mise ghcr.io/jdx/mise:dev cargo'
run = 'docker run -ti --rm -e "GITHUB_API_TOKEN=${GITHUB_API_TOKEN:-}" -v $root:/mise -w /mise ghcr.io/jdx/mise:dev cargo'
Copy link
Owner

Choose a reason for hiding this comment

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

I may have merged too early, I think this would've done the same thing but cleaner:

docker run -ti --rm -e GITHUB_API_TOKEN

https://docs.docker.com/reference/cli/docker/container/run/#env

@Adirelle Adirelle deleted the devcontainer-e2e-fixes branch April 24, 2024 06:58
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