refactor: consolidate duplicated code across build scripts and Makefiles #34
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: Lint | |
| on: | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Lint workflows | |
| run: | | |
| echo "::group::Install actionlint" | |
| bash <(curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
| echo "::endgroup::" | |
| ./actionlint -color | |
| - name: Lint shell scripts | |
| run: | | |
| echo "::group::Install shellcheck" | |
| sudo apt-get update && sudo apt-get install -y shellcheck | |
| echo "::endgroup::" | |
| find . -name "*.sh" -type f -exec shellcheck {} + | |
| - name: Lint Dockerfiles | |
| run: | | |
| echo "::group::Install hadolint" | |
| curl -fsSL -o hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 | |
| chmod +x hadolint | |
| echo "::endgroup::" | |
| find . -name "Dockerfile*" -type f -exec ./hadolint {} + |