Skip to content

Commit

Permalink
ci: set up
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jul 15, 2024
1 parent 483a27c commit dcdf163
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on:
pull_request:
push:

jobs:
main:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- elixir: '1.17'
erlang: '27.0'
lint: true
- elixir: '1.16'
erlang: '26.2.5'
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: ${{ ! matrix.lint }}
with:
path: |
_build
deps
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.erlang }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.get --check-locked
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix compile --warnings-as-errors
- run: mix test
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule TowerEmail.MixProject do
[
app: :tower_email,
version: "0.1.0",
elixir: "~> 1.17",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps()
]
Expand Down

0 comments on commit dcdf163

Please sign in to comment.