Add GitHub Actions CI#13
Merged
Merged
Conversation
Runs the test suite, format check, unused-deps check, and warnings-as-errors compile across Elixir 1.19/OTP 28 and 1.20/OTP 29. The Oils-format conformance spec suite (which tracks known gaps against reference Bash) runs in a separate, non-blocking job that reports its pass/fail count to the job summary.
dbernheisel
approved these changes
Jul 10, 2026
15abb1c to
939340d
Compare
The test interpolated the tmp_dir path into an unquoted redirect target. On Elixir 1.19+, ExUnit's tmp_dir name includes the test description verbatim, which for this test contains "(-C)" — and unquoted parentheses are shell-special, so the redirect misparsed (exit 127, no error output) rather than triggering noclobber. Real Bash would fail on the unquoted path too. Quote the redirect target so the path is treated literally, and read stderr via the session's persistent collector (flush_session_output/1) rather than the result-embedded collector, which is transferred and cleaned up asynchronously after execution.
939340d to
f8b7425
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
Testworkflow (.github/workflows/ci.yml) that runs on pushes tomainand on all pull requests. Borrowed structure from theluarepo's CI.What it does
buildjob (blocking) — matrix over Elixir 1.19/OTP 28 and Elixir 1.20/OTP 29:mix deps.get(withdeps+_buildcaching)mix format --check-formatted(lint variant only)mix deps.unlock --check-unused(lint variant only)mix compile --warnings-as-errors --forcemix test --exclude specVerified locally
mix format --check-formatted✅mix compile --warnings-as-errors✅mix deps.unlock --check-unused✅mix test --exclude spec→ 0 failures ✅