Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.
Merged
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
3 changes: 3 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
groups:
actions-minor:
update-types:
- minor
- patch

- package-ecosystem: mix
directory: /
schedule:
interval: monthly
groups:
elixir-development:
dependency-type: development
update-types:
- minor
- patch
elixir-production:
dependency-type: production
update-types:
- patch
71 changes: 71 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Elixir CI

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
elixir-ci:
name: Elixir ${{ matrix.elixir }} (OTP ${{ matrix.otp }})

env:
LANG: en_US.UTF-8
LC_CTYPE: en_US.UTF-8

strategy:
fail-fast: true
matrix:
include:
- elixir: '1.15'
otp: '26'
os: ubuntu-22.04
check_formatted: true
warnings_as_errors: true
- elixir: '1.16'
otp: '26'
os: ubuntu-22.04
- elixir: '1.17'
otp: '27'
os: ubuntu-22.04

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- uses: erlef/setup-elixir@v1
id: install
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}

- uses: actions/cache@v4
with:
key: builds@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix-${{ hashFiles('mix.lock') }}
path: |
deps
_build

- run: mix 'do' deps.get, deps.compile

- run: mix format --check-formatted
if: matrix.check_formatted

- run: mix compile --warnings-as-errors
if: matrix.warnings_as_errors

- run: mix compile
if: ${{ !matrix.warnings_as_errors }}

- run: mix test

- uses: actions/cache@v4
with:
key: plts@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix-${{ hashFiles('mix.lock') }}
path: |
priv/plts
restore-keys: |
plts@elixir-${{ steps.install.outputs.elixir-version }}-otp-${{ steps.install.outputs.otp-version }}-mix-
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

24 changes: 0 additions & 24 deletions config/config.exs

This file was deleted.

88 changes: 0 additions & 88 deletions doc/404.html

This file was deleted.

Loading