ci: disable setup-beam problem matchers to quiet dep-warning annotations #12
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: CI | |
| on: # yamllint disable-line rule:truthy | |
| workflow_dispatch: | |
| workflow_call: | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: app | |
| steps: | |
| - | |
| uses: actions/checkout@v7 | |
| - | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: "29.0.3" | |
| elixir-version: "1.20.3" | |
| # Without this, setup-beam's problem matchers promote every | |
| # compiler warning from deps (e.g. postgrex/rewrite's deprecated | |
| # `xref: [exclude: ...]`, yamerl's deprecated `catch ...` syntax - | |
| # both already at their latest published Hex versions, so not | |
| # fixable from here) into noisy GH Actions annotations. See #9. | |
| disable_problem_matchers: true | |
| - | |
| name: Cache deps/build | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| app/deps | |
| app/_build | |
| key: ${{ runner.os }}-mix-${{ hashFiles('app/mix.lock') }} | |
| - | |
| run: mix deps.get | |
| - | |
| run: mix format --check-formatted | |
| - | |
| run: mix test | |
| conventional_commits: | |
| name: Validate Commit Subjects | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| # pull_request's default ref is the synthetic refs/pull/N/merge test-merge | |
| # commit (subject "Merge <sha> into <sha>"), not the PR branch tip - check | |
| # out the real head SHA instead so that commit is never in the validated | |
| # range. Falls back to github.sha for non-PR triggers (workflow_dispatch/ | |
| # workflow_call), where github.event.pull_request is unset. | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
| - | |
| env: | |
| FETCH_BASE_REF: "true" | |
| run: ./ci/conventional_commits.sh |