fix: :on_error callback should handle 500s errors #36
Workflow file for this run
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: | |
check: | |
strategy: | |
matrix: | |
cmd: [test, test.format, test.compile, test.build] | |
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 ${{ matrix.cmd }} | |