Skip to content

enforce formatting with shfmt #124

enforce formatting with shfmt

enforce formatting with shfmt #124

Workflow file for this run

name: prepare
on:
push:
branches: [master]
tags-ignore: ['v*']
pull_request:
branches: [master]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v4
with:
check-latest: true
- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
- name: Install shellcheck
run: sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y shellcheck
- name: Run tests with BATS
run: ./test/bats/bin/bats test/*.bats
- name: Run shellcheck
run: find ./bin -type f -print -exec shellcheck {} +
- name: Run shfmt
run: shfmt -d .