Skip to content

chore: add hex package meta #3

chore: add hex package meta

chore: add hex package meta #3

Workflow file for this run

name: Elixir CI
on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- logflare-ex/**
defaults:
run:
working-directory: ./logflare-ex
jobs:
unit_tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: |
logflare-ex/deps
key: mix-${{ hashFiles('**/mix.lock') }}
restore-keys: mix
- run: mix deps.get
- run: mix test
compile_check:
name: Compilation warnings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: |
logflare-ex/deps
key: mix-${{ hashFiles('**/mix.lock') }}
restore-keys: mix
- run: mix deps.get
- run: mix test.compile
formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: |
logflare-ex/deps
key: mix-${{ hashFiles('**/mix.lock') }}
restore-keys: mix
- run: mix deps.get
- run: mix test.format