Skip to content

Commit

Permalink
Move to GitHub actions (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkgil authored Mar 11, 2021
1 parent c3f30f5 commit 13b8940
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 85 deletions.
81 changes: 0 additions & 81 deletions .circleci/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .dialyzer_ignore
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
# TODO: remove when dropping support for Elixir 1.5
test/support/wait_until.ex:49
Unknown type hamcrest:matchspec/0
98 changes: 98 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Test

on:
pull_request:
branches:
- "main"
push:
branches:
- "main"

jobs:
format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
otp-version: "23.2"
elixir-version: "1.11.3"
- uses: actions/cache@v2
name: Cache dependencies
with:
path: |
deps
key: deps-${{ hashFiles('mix.lock') }}
restore-keys: |
deps-${{ hashFiles('mix.lock') }}
deps-
- run: mix deps.get
- run: mix format --check-formatted
test:
name: Test on Elixir ${{ matrix.elixir }} (OTP ${{ matrix.otp }})
runs-on: ubuntu-latest
strategy:
matrix:
otp: ["21.3", "23.2"]
elixir: ["1.9.4", "1.11.3"]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@v2
name: Cache dependencies
with:
path: |
deps
key: deps-${{ hashFiles('mix.lock') }}
restore-keys: |
deps-${{ hashFiles('mix.lock') }}
deps-
- run: mix deps.get
- uses: actions/cache@v2
name: Cache build
with:
path: |
_build
key: build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
restore-keys: |
build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-
- run: mix test

dialyze:
name: Dialyze on Elixir ${{ matrix.elixir }} (OTP ${{ matrix.otp }})
runs-on: ubuntu-latest
strategy:
matrix:
otp: ["21.3", "23.2"]
elixir: ["1.9.4", "1.11.3"]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@v2
name: Cache dependencies
with:
path: |
deps
key: deps-${{ hashFiles('mix.lock') }}
restore-keys: |
deps-${{ hashFiles('mix.lock') }}
deps-
- run: mix deps.get
- uses: actions/cache@v2
name: Cache build
with:
path: |
_build
key: build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
restore-keys: |
build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-
- run: mix dialyzer --halt-exit-status
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TelemetryMetricsStatsd

[![CircleCI](https://circleci.com/gh/beam-telemetry/telemetry_metrics_statsd.svg?style=svg)](https://circleci.com/gh/beam-telemetry/telemetry_metrics_statsd)
[![Test](https://github.com/beam-telemetry/telemetry_metrics_statsd/actions/workflows/test.yml/badge.svg)](https://github.com/beam-telemetry/telemetry_metrics_statsd/actions/workflows/test.yml)

`Telemetry.Metrics` reporter for StatsD-compatible metric servers (including DataDog).

Expand Down

0 comments on commit 13b8940

Please sign in to comment.