Skip to content
/ statix Public
forked from lexmag/statix
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) - Add README and GH workflow #2

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
104 changes: 104 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Test

on: [pull_request]

jobs:
Test:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
elixir:
- 1.15
- 1.14
- 1.13
otp:
- 26.1
- 25.3
- 24.3
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
version-type: strict
- 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
env:
MIX_ENV: test
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: mix test --trace

TestRuntime:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
elixir:
- 1.15
- 1.14
- 1.13
otp:
- 26.1
- 25.3
- 24.3
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
version-type: strict
- 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
env:
MIX_ENV: test
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
env:
STATIX_TEST_RUNTIME_CONFIG: true
run: mix test --trace

Linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.13'
otp-version: '24.3'
version-type: strict
- 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 local.rebar --force
mix local.hex --force
mix deps.get
- name: Check Format
run: mix format --check-formatted
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v1.5.0

* Add support for OTP 26 and Elixir 1.15.
* Fixed prefix building when connect options provided.

## v1.4.0
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Statix

[![Build Status](https://travis-ci.com/lexmag/statix.svg?branch=master)](https://travis-ci.com/lexmag/statix)
[![Hex Version](https://img.shields.io/hexpm/v/statix.svg "Hex Version")](https://hex.pm/packages/statix)
[![Hex Version](https://img.shields.io/hexpm/v/statix.svg "Hex Version")](https://hex.pm/packages/cabify_statix)

## Disclaimer

This is a fork of [Statix](https://github.com/lexmag/statix) intended to be a temporal handover while the owner is not available. See this [issue for more info](https://github.com/lexmag/statix/pull/72#issuecomment-1805879985).

___

Statix is an Elixir client for StatsD-compatible servers.
It is focused on speed without sacrificing simplicity, completeness, or correctness.
Expand Down Expand Up @@ -34,15 +39,15 @@ What makes Statix the fastest library around:

</details>

See [the documentation](https://hexdocs.pm/statix) for detailed usage information.
See [the documentation](https://hexdocs.pm/cabify_statix) for detailed usage information.

## Installation

Add Statix as a dependency to your `mix.exs` file:

```elixir
defp deps() do
[{:statix, ">= 0.0.0"}]
[{:cabify_statix, "~> 1.5"}]
end
```

Expand Down
9 changes: 5 additions & 4 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
defmodule Statix.Mixfile do
use Mix.Project

@version "1.4.0"
@source_url "https://github.com/lexmag/statix"
@version "1.5.0"
@source_url "https://github.com/cabify/statix"

def project() do
[
Expand Down Expand Up @@ -31,9 +31,10 @@ defmodule Statix.Mixfile do

defp package() do
[
maintainers: ["Aleksei Magusev", "Andrea Leopardi"],
maintainers: ["Cabify"],
licenses: ["ISC"],
links: %{"GitHub" => @source_url}
links: %{"GitHub" => @source_url},
name: :cabify_statix
]
end

Expand Down