Skip to content
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
56 changes: 0 additions & 56 deletions .circleci/config.yml

This file was deleted.

80 changes: 80 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Elixir CI

on:
push:
branches:
- main
- hotfix/[0-9]+.[0-9]+.[0-9]+
- release/[0-9]+.[0-9]+.[0-9]+
tags:
- "*"
pull_request:
types: [synchronize, opened, reopened]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: test (${{ matrix.elixir }}-erlang-${{ matrix.erlang }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir: "1.16.2"
erlang: "26.2.4"
latest: true
- elixir: "1.15.7"
erlang: "26.1.2"
latest: false
- elixir: "1.14.5"
erlang: "25.3.2"
latest: false

steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.erlang }}

- name: Restore deps/build cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.erlang }}-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.erlang }}-

- run: mix deps.get

- run: mix test

- name: Quality checks (latest only)
if: matrix.latest
run: |
mix format --check-formatted
mix deps.unlock --check-unused
mix compile --warnings-as-errors
mix credo -a --strict
mix dialyzer
env:
MIX_ENV: test

- name: Docs + hex build (latest only)
if: matrix.latest
run: |
mix deps.get
mix docs
mix hex.build
env:
MIX_ENV: docs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CredoBinaryPatterns

[![CircleCI](https://circleci.com/gh/smartrent/credo_binary_patterns.svg?style=svg)](https://circleci.com/gh/smartrent/credo_binary_patterns)
[![Elixir CI](https://github.com/smartrent/credo_binary_patterns/actions/workflows/ci.yaml/badge.svg)](https://github.com/smartrent/credo_binary_patterns/actions/workflows/ci.yaml)
[![Hex version](https://img.shields.io/hexpm/v/credo_binary_patterns.svg "Hex version")](https://hex.pm/packages/credo_binary_patterns)

The `:credo_binary_patterns` library contains Credo checks for
Expand Down
Loading