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

CI housekeeping #1112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 35 additions & 26 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,48 @@ jobs:
matrix:
include:
- pair:
otp: 27.x
elixir: 1.17.x
otp: "27"
elixir: "1.18"
lint: lint
- pair:
otp: "27"
elixir: "1.17"

- pair:
otp: 26.x
elixir: 1.17.x
otp: "26"
elixir: "1.17"
- pair:
otp: 26.x
elixir: 1.16.x
otp: "26"
elixir: "1.16"
- pair:
otp: 26.x
elixir: 1.15.x
otp: "26"
elixir: "1.15"

- pair:
otp: 25.x
elixir: 1.17.x
otp: "25"
elixir: "1.17"
- pair:
otp: 25.x
elixir: 1.16.x
otp: "25"
elixir: "1.16"
- pair:
otp: 25.x
elixir: 1.15.x
otp: "25"
elixir: "1.15"
- pair:
otp: 25.x
elixir: 1.14.x
otp: "25"
elixir: "1.14"

- pair:
otp: 24.x
elixir: 1.16.x
otp: "24"
elixir: "1.16"
- pair:
otp: 24.x
elixir: 1.15.x
otp: "24"
elixir: "1.15"
- pair:
otp: 24.x
elixir: 1.14.x
otp: "24"
elixir: "1.14"
- pair:
otp: 24.x
elixir: 1.13.x
otp: "24"
elixir: "1.13"

steps:
- uses: actions/checkout@v4
Expand All @@ -62,20 +65,26 @@ jobs:
with:
port: 8000
cors: "*"
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{matrix.pair.otp}}-${{matrix.pair.elixir}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{matrix.pair.otp}}-${{matrix.pair.elixir}}-

- run: mix deps.get

- run: mix compile

- run: mix deps.unlock --check-unused
if: ${{matrix.lint}} # Only check formatting with the latest verison
if: ${{matrix.lint}}

- run: mix format --check-formatted
if: ${{matrix.lint}}

- run: mix dialyzer
if: ${{matrix.lint}}

- run: mix test
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
elixir 1.17.2
erlang 27.0.1
elixir 1.18.1
erlang 27.2
Loading