Skip to content

Commit

Permalink
Actions & Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehostetler committed Dec 16, 2024
1 parent db9c2e8 commit e3ea322
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "mix"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
labels:
- "dependencies"
- "elixir"
commit-message:
prefix: "deps"
include: "scope"
47 changes: 47 additions & 0 deletions .github/workflows/elixir-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Mix Test

on:
pull_request:
branches: ["main"]
push:
branches: ["main"]

permissions:
contents: read

jobs:
test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
otp: ["25.3"]
elixir: ["1.15"]

steps:
- uses: actions/checkout@v3

- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}

- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-

- name: Install dependencies
run: mix deps.get

- name: Check formatting
run: mix format --check-formatted

- name: Run tests
run: mix test

- name: Check for unused dependencies
run: mix deps.unlock --check-unused

0 comments on commit e3ea322

Please sign in to comment.