Fix elixir test #9
This file contains hidden or 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 Tests | |
| on: | |
| push: | |
| paths: | |
| - 'elixir/**' | |
| - '.github/workflows/elixir-test.yml' | |
| pull_request: | |
| paths: | |
| - 'elixir/**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| elixir: ['1.17'] | |
| otp: ['27'] | |
| defaults: | |
| run: | |
| working-directory: elixir | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| - name: Restore dependencies cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: elixir/deps | |
| key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix- | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Run tests | |
| run: mix test | |
| - name: Run code analysis | |
| run: | | |
| mix format --check-formatted | |
| mix credo --strict | |
| mix dialyzer --halt-exit-status |