chore: add hex package meta #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |