-
Notifications
You must be signed in to change notification settings - Fork 0
Add Elixir CI workflow configuration #1
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||||||||||||||||||
| # This workflow uses actions that are not certified by GitHub. | ||||||||||||||||||||||
| # They are provided by a third-party and are governed by | ||||||||||||||||||||||
| # separate terms of service, privacy policy, and support | ||||||||||||||||||||||
| # documentation. | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| name: Elixir CI | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| on: | ||||||||||||||||||||||
| push: | ||||||||||||||||||||||
| branches: [ "main" ] | ||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||
| branches: [ "main" ] | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||
| contents: read | ||||||||||||||||||||||
| id-token: write | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||
| build: | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| name: Build and test | ||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||||||||||
| - name: Set up Elixir | ||||||||||||||||||||||
| uses: erlef/setup-beam@v1 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| elixir-version: '1.17.3' | ||||||||||||||||||||||
| otp-version: '26.2.5' | ||||||||||||||||||||||
| - name: Install dependencies | ||||||||||||||||||||||
| run: mix deps.get | ||||||||||||||||||||||
|
||||||||||||||||||||||
| run: mix deps.get | |
| run: mix deps.get | |
| - name: Compile (warnings as errors) | |
| run: mix compile --warnings-as-errors | |
| - name: Check formatting | |
| run: mix format --check-formatted |
Copilot
AI
Dec 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow runs mix test immediately after installing dependencies, without an explicit compilation step. While mix test will compile the code automatically, adding an explicit mix compile step before running tests would make build failures clearer and separate compilation issues from test failures in the CI logs. This is particularly helpful when debugging CI failures.
| run: mix deps.get | |
| run: mix deps.get | |
| - name: Compile | |
| run: mix compile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Elixir version 1.17.3 specified here is incompatible with the version constraint in mix.exs (line 8), which specifies "
> 1.15". The ">" operator means >= 1.15.0 and < 1.16.0, so Elixir 1.17.3 will not satisfy this constraint. This will cause the CI build to fail or produce misleading results since it's testing with a version outside the declared compatibility range. Either update the CI to use a 1.15.x version or update mix.exs to support 1.17.x (e.g., "> 1.15" should be changed to "> 1.15 or ~> 1.17" or use a range like ">= 1.15.0").