Skip to content

Generalize the GitHub Continuous Integration process #203

Generalize the GitHub Continuous Integration process

Generalize the GitHub Continuous Integration process #203

Workflow file for this run

---
name: lint
'on': push
jobs:
text-linux:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ludeeus/action-shellcheck@master
with:
additional_files: ./*.do ./app/*
ignore_names: pass
- uses: mfinelli/setup-shfmt@v3
- run: shfmt -d ./*.do ./app/[bcefimrsty]*
- uses: crate-ci/typos@master
- uses: errata-ai/vale-action@reviewdog
with:
fail_on_error: true
files: README.adoc
- uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: .github/*.yml .github/workflows/*.yml
strict: true
test-macos:
strategy:
matrix:
os: [macos-12, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: |
brew install \
goredo \
shellcheck \
shfmt \
typos-cli \
vale \
yamllint
REL=0.9.20240202
SRC=https://github.com/rdavid/shellbase/archive/refs/tags/v$REL.tar.gz
curl --location --silent $SRC |
tar \
--directory /usr/local/bin \
--extract \
--gzip \
--strip-components=2 \
shellbase-$REL/lib/base.sh
vale sync
redo -xx lint