🔖 Bump to version 2.5.2 #19
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: Skogsrå Checks | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| name: "Test OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}" | |
| strategy: | |
| matrix: | |
| otp: ['28.3.2'] | |
| elixir: ['1.19.5'] | |
| env: | |
| MIX_ENV: "test" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: "Checkout repository" | |
| - uses: erlef/setup-beam@v1 | |
| name: "Setup Elixir" | |
| with: | |
| otp-version: ${{ matrix.otp }} | |
| elixir-version: ${{ matrix.elixir }} | |
| - name: "Get dependencies" | |
| run: mix do local.rebar --force, local.hex --force, deps.get | |
| - name: "Compile dependencies" | |
| run: mix deps.compile | |
| - name: "Compile project" | |
| run: mix compile --warnings-as-errors | |
| - name: "Check formatting" | |
| run: mix format --dry-run --check-formatted | |
| - name: "Run tests with coverage" | |
| run: mix coveralls.github | |
| - name: "Run Credo" | |
| run: mix credo | |
| dialyzer: | |
| runs-on: ubuntu-latest | |
| name: "Dialyzer OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}" | |
| strategy: | |
| matrix: | |
| otp: ['28.3.2'] | |
| elixir: ['1.19.5'] | |
| env: | |
| MIX_ENV: "dev" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: "Checkout repository" | |
| - uses: erlef/setup-beam@v1 | |
| name: "Setup Elixir" | |
| with: | |
| otp-version: ${{ matrix.otp }} | |
| elixir-version: ${{ matrix.elixir }} | |
| - uses: actions/cache@v4 | |
| name: "Retrieves cached PLT" | |
| id: plt-cache | |
| with: | |
| path: priv/plts | |
| key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | |
| - name: "Get dependencies" | |
| run: mix do local.rebar --force, local.hex --force, deps.get | |
| - name: "Compile dependencies" | |
| run: mix deps.compile | |
| - name: "Run Dialyzer" | |
| run: mix dialyzer |