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

Create workflow for testing for the ruby feature #19

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

andrewn617
Copy link
Collaborator

Creating a workflow for testing the ruby feature. I use the devcontainer/ci step to create a devcontainer using the ruby feature and check that ruby is installed. I think that's sufficient for now.

I am pushing the test image to ghcr.io/rails/devcontainer/test-ruby-feature so it can be cached. Without a cache this workflow takes about ~10 minutes, about 6 of that is actually installing ruby, so the cache is quite helpful. I set this up to only push the image if it is from main. We should make that package private probably.

I created a link to the features directory in the .github/.devcontainer directory (where the devcontainer used in the test lives). That way the local version of the feature can be used by the devcontainer. I tried to do this by mounting that folder in the devcontainer but it didn't seem to work 🤔 , so I went with the link instead.

This workflow spins up a devcontainer that uses the ruby feature and checks that ruby is installed.
@andrewn617 andrewn617 merged commit a526b49 into main Apr 11, 2024
1 check passed
@andrewn617 andrewn617 deleted the test-ruby-feature branch April 11, 2024 17:56
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