Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nmbrone committed Jul 28, 2023
1 parent 717d3f4 commit a7e192a
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "mix"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
19 changes: 19 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
categories:
- title: Breaking Changes 🛠
labels:
- breaking
- title: New Features 🎉
labels:
- feature
- title: Fixes 🔧
labels:
- fix
- title: Other Changes
labels:
- "*"
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on: push

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
workflow:
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['25.3.2.4', '26.0.2']
elixir: ['1.15.5']

steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Set up cache
uses: actions/cache@v3
id: mix-cache
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-
- name: Get deps
if: steps.mix-cache.outputs.cache-hit != 'true'
run: mix deps.get

- name: Compile deps
if: steps.mix-cache.outputs.cache-hit != 'true'
run: mix deps.compile

# - name: Build Dialyzer PLT(s)
# if: steps.mix-cache.outputs.cache-hit != 'true'
# run: mix dialyzer --plt

- name: Mix compile
run: mix compile --force --warnings-as-errors

- name: Mix format
run: mix format --check-formatted

# - name: Dialyzer
# run: mix dialyzer --no-check

- name: Mix test
run: mix test

0 comments on commit a7e192a

Please sign in to comment.