Skip to content

Rewrite linter glue bash with go #445

Rewrite linter glue bash with go

Rewrite linter glue bash with go #445

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
dprint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: dprint/check@v2.2
with:
dprint-version: '0.36.1'
shellscript:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
# * ubuntu-latest includes shellcheck, However it is bit old. This ensures to use fixed version.
# * Standardizing to nix is best, but nix is slow even if installing only tiny binary
- uses: jdxcode/rtx-action@v1
with:
tool_versions: |
shellcheck 0.9.0
shfmt 3.6.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Logging dependency versions
run: |
shellcheck --version
shfmt --version
- name: Run linters
run: |
shopt -s globstar
shellcheck ./**/*.bash
shfmt --diff ./**/*.bash
typos:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Keep same version as used in *.nix
- uses: crate-ci/typos@v1.15.0