-
Notifications
You must be signed in to change notification settings - Fork 6
Run CI against more elixir/OTP versions #22
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
Merged
nkyllonen
merged 3 commits into
gridpoint-com:philosophical-rewrite
from
doughsay:github-ci-matrix
Jul 23, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,126 +1,75 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| on: [push, pull_request] | ||
|
|
||
| env: | ||
| MIX_ENV: test | ||
| OTP_VERSION_SPEC: "27.x" | ||
| ELIXIR_VERSION_SPEC: "1.18.x" | ||
|
|
||
| jobs: | ||
| compile: | ||
| name: Compile | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Elixir | ||
| uses: erlef/setup-beam@v1 | ||
| with: | ||
| otp-version: ${{ env.OTP_VERSION_SPEC }} | ||
| elixir-version: ${{ env.ELIXIR_VERSION_SPEC }} | ||
| - name: Install dependencies | ||
| run: mix deps.get | ||
| - name: Compile dependencies | ||
| run: mix deps.compile | ||
| - name: Compile | ||
| run: mix compile --warnings-as-errors | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
|
|
||
| # Test on the 3 latest Elixir versions with the latest OTP version that each supports | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - elixir: 1.16.x | ||
| otp: 26.x | ||
|
|
||
| - elixir: 1.17.x | ||
| otp: 27.x | ||
|
|
||
| - elixir: 1.18.x | ||
| otp: 28.x | ||
| lint: true | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Elixir | ||
| uses: erlef/setup-beam@v1 | ||
| with: | ||
| otp-version: ${{ env.OTP_VERSION_SPEC }} | ||
| elixir-version: ${{ env.ELIXIR_VERSION_SPEC }} | ||
| otp-version: ${{ matrix.otp }} | ||
| elixir-version: ${{ matrix.elixir }} | ||
|
|
||
| - name: Install dependencies | ||
| run: mix deps.get | ||
| - name: Compile dependencies | ||
| run: mix deps.compile | ||
|
|
||
| # We only check for warnings on latest Elixir version | ||
| - name: Compile & lint | ||
| run: mix compile --warnings-as-errors | ||
| if: ${{ matrix.lint }} | ||
|
|
||
| - name: Run tests | ||
| run: mix test | ||
|
|
||
| check-formatted: | ||
| name: Check Formatted | ||
| runs-on: ubuntu-latest | ||
|
|
||
| # Check formatting on the latest Elixir version only | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - elixir: 1.18.x | ||
| otp: 28.x | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Elixir | ||
| uses: erlef/setup-beam@v1 | ||
| with: | ||
| otp-version: ${{ env.OTP_VERSION_SPEC }} | ||
| elixir-version: ${{ env.ELIXIR_VERSION_SPEC }} | ||
| otp-version: ${{ matrix.otp }} | ||
| elixir-version: ${{ matrix.elixir }} | ||
|
|
||
| - name: Install dependencies | ||
| run: mix deps.get | ||
| - name: Compile dependencies | ||
| run: mix deps.compile | ||
| - name: Check formatted | ||
| run: mix format --check-formatted | ||
|
|
||
| # credo: | ||
| # name: Credo | ||
| # runs-on: ubuntu-latest | ||
|
|
||
| # steps: | ||
| # - name: Checkout | ||
| # uses: actions/checkout@v4 | ||
| # - name: Set up Elixir | ||
| # uses: erlef/setup-beam@v1 | ||
| # with: | ||
| # otp-version: ${{ env.OTP_VERSION_SPEC }} | ||
| # elixir-version: ${{ env.ELIXIR_VERSION_SPEC }} | ||
| # - name: Install dependencies | ||
| # run: mix deps.get | ||
| # - name: Compile dependencies | ||
| # run: mix deps.compile | ||
| # - name: Run credo | ||
| # run: mix credo --strict | ||
|
|
||
| # dialyzer: | ||
| # name: Dialyzer | ||
| # runs-on: ubuntu-latest | ||
|
|
||
| # env: | ||
| # MIX_ENV: dev | ||
| - name: Compile | ||
| run: mix compile | ||
|
|
||
| # steps: | ||
| # - name: Checkout | ||
| # uses: actions/checkout@v4 | ||
| # - name: Set mix file hash | ||
| # id: set_vars | ||
| # run: | | ||
| # mix_hash="${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}" | ||
| # echo "::set-output name=mix_hash::$mix_hash" | ||
| # - name: Cache PLT files | ||
| # id: cache-plt | ||
| # uses: actions/cache@v4 | ||
| # with: | ||
| # path: | | ||
| # _build/dev/*.plt | ||
| # _build/dev/*.plt.hash | ||
| # key: plt-cache-${{ steps.set_vars.outputs.mix_hash }} | ||
| # restore-keys: | | ||
| # plt-cache- | ||
| # - name: Set up Elixir | ||
| # uses: erlef/setup-beam@v1 | ||
| # with: | ||
| # otp-version: ${{ env.OTP_VERSION_SPEC }} | ||
| # elixir-version: ${{ env.ELIXIR_VERSION_SPEC }} | ||
| # - name: Install dependencies | ||
| # run: mix deps.get | ||
| # - name: Compile dependencies | ||
| # run: mix deps.compile | ||
| # - name: Run dialyzer | ||
| # run: mix dialyzer | ||
| - name: Check formatted | ||
| run: mix format --check-formatted |
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
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
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.
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.
Sads 🥲 BUT FINE 🙄