Merge pull request #45 from pguyot/w44/start-module-precedence #24
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
| # | |
| # Copyright 2022 Davide Bettio <[email protected]> | |
| # Copyright 2025 Winford (Uncle Grumpy) <[email protected]> | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | |
| # | |
| name: "Check Erlang Formatting" | |
| on: | |
| push: | |
| paths: | |
| - 'src/**' | |
| - 'test/**' | |
| - '**/*.erl' | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - 'test/**' | |
| - '**/*.erl' | |
| jobs: | |
| format-check: | |
| runs-on: ubuntu-24.04 | |
| container: erlang:28 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: "Install deps" | |
| run: | | |
| apt install -y git | |
| - name: "Install erlfmt" | |
| run: | | |
| cd ${HOME} | |
| git clone --depth 1 -b v1.6.2 https://github.com/WhatsApp/erlfmt.git | |
| cd erlfmt | |
| rebar3 as release escriptize | |
| - name: "Checkout code" | |
| uses: actions/checkout@v5 | |
| - name: "Check formatting with erlfmt" | |
| run: | | |
| find . -name *.erl | xargs ${HOME}/erlfmt/_build/release/bin/erlfmt -c |