Bump the github-actions group with 3 updates #277
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
| on: | |
| pull_request: | |
| branches: | |
| - "*" | |
| push: | |
| branches: | |
| - "main" | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: read | |
| jobs: | |
| detectToolVersions: | |
| name: "Detect Tool Versions" | |
| runs-on: ubuntu-latest | |
| outputs: | |
| otpVersion: "${{ steps.toolVersions.outputs.OTP_VERSION }}" | |
| elixirVersion: "${{ steps.toolVersions.outputs.ELIXIR_VERSION }}" | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: "Read .tool-versions" | |
| id: toolVersions | |
| run: | | |
| OTP_VERSION="$(cat .tool-versions | grep erlang | cut -d' ' -f2-)" | |
| echo OTP: $OTP_VERSION | |
| echo "OTP_VERSION=${OTP_VERSION}" >> $GITHUB_OUTPUT | |
| ELIXIR_VERSION="$(cat .tool-versions | grep elixir | cut -d' ' -f2-)" | |
| echo Rebar: $ELIXIR_VERSION | |
| echo "ELIXIR_VERSION=${ELIXIR_VERSION}" >> $GITHUB_OUTPUT | |
| format: | |
| name: Check Formatting | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: dev | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: erlef/setup-elixir@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0 | |
| id: setupBEAM | |
| with: | |
| version-file: .tool-versions | |
| version-type: strict | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.get | |
| - run: mix format --check-formatted | |
| test: | |
| name: Run Tests & Submit Coverage (${{ matrix.name }}) | |
| needs: ["detectToolVersions"] | |
| env: | |
| MIX_ENV: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Lowest Supported | |
| - otp: "24.2" | |
| elixir: "1.15" | |
| runs-on: ubuntu-22.04 | |
| name: "lowest" | |
| # Latest Supported | |
| - otp: "${{ needs.detectToolVersions.outputs.otpVersion }}" | |
| elixir: "${{ needs.detectToolVersions.outputs.elixirVersion }}" | |
| runs-on: ubuntu-24.04 | |
| name: "latest" | |
| enable_coverage_export: "true" | |
| # Test Main | |
| - otp: "${{ needs.detectToolVersions.outputs.otpVersion }}" | |
| elixir: "main" | |
| runs-on: ubuntu-24.04 | |
| name: "main" | |
| runs-on: ${{ matrix.runs-on }} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: erlef/setup-elixir@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0 | |
| id: setupBEAM | |
| with: | |
| otp-version: ${{ matrix.otp }} | |
| elixir-version: ${{ matrix.elixir }} | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.get | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: _build/${{ env.MIX_ENV }} | |
| key: compile-${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| compile-${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.compile --skip-umbrella-children | |
| - run: mix compile --warning-as-errors | |
| - run: mix coveralls.github | |
| if: ${{ matrix.enable_coverage_export == 'true' }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - run: mix test | |
| if: ${{ !matrix.enable_coverage_export }} | |
| credo: | |
| name: Check Credo | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: dev | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: erlef/setup-elixir@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0 | |
| id: setupBEAM | |
| with: | |
| version-file: .tool-versions | |
| version-type: strict | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.get | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: _build/${{ env.MIX_ENV }} | |
| key: compile-${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| compile-${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.compile --skip-umbrella-children | |
| - run: mix compile --warning-as-errors | |
| - run: mix credo --strict | |
| dialyzer: | |
| name: Check Dialyzer | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: dev | |
| DIALYZER_PLT_PRIV: true | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: erlef/setup-elixir@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0 | |
| id: setupBEAM | |
| with: | |
| version-file: .tool-versions | |
| version-type: strict | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.get | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: _build/${{ env.MIX_ENV }} | |
| key: compile-${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| compile-${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.compile --skip-umbrella-children | |
| - run: mix compile --warning-as-errors | |
| - uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: priv/plts/ | |
| key: dialyzer_plt_${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| dialyzer_plt_${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix dialyzer --plt | |
| - uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: priv/plts/ | |
| key: dialyzer_plt_${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| - run: mix dialyzer | |
| docs: | |
| name: "Generate Docs" | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: dev | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: erlef/setup-elixir@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0 | |
| id: setupBEAM | |
| with: | |
| version-file: .tool-versions | |
| version-type: strict | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: deps | |
| key: deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.get | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: _build/${{ env.MIX_ENV }} | |
| key: compile-${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.lock') }} | |
| restore-keys: | | |
| compile-${{ env.MIX_ENV }}-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}- | |
| - run: mix deps.compile --skip-umbrella-children | |
| - run: mix compile --warning-as-errors | |
| - run: mix docs | |
| - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: docs | |
| path: doc |