Skip to content

Simplify Simhash benchmark setup #12

Simplify Simhash benchmark setup

Simplify Simhash benchmark setup #12

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
permissions:
contents: read
jobs:
test:
name: ${{ matrix.name }} (Elixir ${{ matrix.elixir }} / OTP ${{ matrix.otp }})
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- name: Minimum supported
elixir: "1.14.5"
otp: "25"
quality: false
- name: Current
elixir: "1.20"
otp: "29"
quality: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Elixir and Erlang/OTP
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install dependencies
run: mix deps.get --only test
- name: Check formatting
if: matrix.quality
run: mix format --check-formatted
- name: Compile with warnings as errors
run: mix compile --warnings-as-errors
- name: Run Credo
if: matrix.quality
run: mix credo --strict
- name: Run tests with coverage
run: mix test --cover