Lotc 2294 align app version with hex #33
Workflow file for this run
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: PDF417 CI | |
| on: | |
| push: | |
| paths: | |
| - "**" | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| concurrency: | |
| group: pdf417-ci-${{ github.ref }}-1 | |
| cancel-in-progress: true | |
| env: | |
| MIX_ENV: test | |
| jobs: | |
| validate: | |
| name: Run CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Elixir | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: "1.18.2" | |
| otp-version: "27.2" | |
| - name: Elixir version | |
| run: iex --version | |
| - name: Install Hex and Rebar | |
| run: | | |
| mix local.hex --force && mix local.rebar --force | |
| - name: Retrieve Cached Dependencies | |
| id: mix-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ./deps | |
| ./_build | |
| key: mix-${{ hashFiles('mix.lock') }}-${{ hashFiles('.github/workflows/pdf417.yml')}} | |
| - name: Install and compile dependencies | |
| if: steps.mix-cache.outputs.cache-hit != 'true' | |
| run: | | |
| mix deps.get | |
| mix deps.compile | |
| mix compile --warnings-as-errors | |
| - name: Check Formatting | |
| run: | | |
| mix format --check-formatted | |
| - name: Check Coverage and Tests | |
| run: mix coveralls | |
| - name: Check mix.lock for unused dependencies | |
| run: mix deps.unlock --check-unused | |
| - name: Credo | |
| run: mix credo --strict |