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

Dev env and Github actions #4

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Dev env and Github actions #4

merged 1 commit into from
Dec 18, 2024

Conversation

davidmh
Copy link
Member

@davidmh davidmh commented Dec 18, 2024

Since we're planning on modifying more than a few small things in this fork, we should:

  • Enable local and CI environments using nix
  • Plug the tests into a Github action

QA steps

Since you already have nix and direnv installed, all you need to install now is devenv as a standalone tool:

nix profile install nixpkgs#devenv

After that all you need to do is run direnv allow in the path for this project.

.github/workflows/test.yml Outdated Show resolved Hide resolved
We're using nix, direnv and devenv to run the project's tests in both
dev and CI environments.
@davidmh davidmh marked this pull request as ready for review December 18, 2024 17:37
@davidmh davidmh requested a review from sgoel December 18, 2024 17:51
@sgoel
Copy link
Collaborator

sgoel commented Dec 18, 2024

Qa steps worked for me!

@davidmh davidmh merged commit b9aa572 into master Dec 18, 2024
1 check passed
@davidmh davidmh deleted the nix branch December 18, 2024 18:19
@sgoel
Copy link
Collaborator

sgoel commented Dec 18, 2024

@davidmh you mentioned in standup that this diff allows developers to not have to worry about the java dependencies on their system, but where is that defined? I don't see a JDK version being referenced anywhere

@davidmh
Copy link
Member Author

davidmh commented Dec 18, 2024

Is set here:

languages.java.enable = true;
languages.java.maven.enable = true;

Since we're not specifying a jdk version, it goes with the default for the current release of devenv:

https://github.com/cachix/devenv/blob/main/src/modules/languages/java.nix#L17-L26

It installs java 21.0.2:

Screenshot 2024-12-18 at 13 03 19

Do we need a specific version?

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