Skip to content

chore(deps): all non-major dependencies #275

chore(deps): all non-major dependencies

chore(deps): all non-major dependencies #275

Workflow file for this run

name: Lint
on:
pull_request:
paths:
# actionlint
- ".github/workflows/*.yml"
# prettier
- "**.md"
- "**.yml"
- "**.json"
# shellcheck & shfmt
- "**.sh"
jobs:
validate-renovate-config:
name: Validate renovate config
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install -g renovate
- name: Validate config
run: renovate-config-validator .github/renovate.json
actionlint:
name: Actionlint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Actionlint
env:
version: "1.7.1"
run: curl -Ls "https://github.com/rhysd/actionlint/releases/download/v${{ env.version }}/actionlint_${{ env.version }}_linux_amd64.tar.gz" | sudo tar -x -z -C /usr/local/bin actionlint
- name: Run Actionlint
run: |
echo "::add-matcher::.github/matcher-actionlint.json"
actionlint -color
prettier:
runs-on: ubuntu-22.04
name: Prettier
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bunx prettier -c .
shellcheck:
runs-on: ubuntu-22.04
name: Shellcheck
steps:
- uses: actions/checkout@v4
- name: Install Shellcheck
env:
version: "0.10.0"
run: curl -Ls "https://github.com/koalaman/shellcheck/releases/download/v${{ env.version }}/shellcheck-v${{ env.version }}.linux.x86_64.tar.xz" | sudo tar -x -J --wildcards --strip-components=1 -C /usr/local/bin "shellcheck*/shellcheck"
- name: Verify shell scripts
run: |
echo "::add-matcher::.github/matcher-shellcheck.json"
shellcheck -f gcc -S warning hadolint.sh install.sh lib/*.sh test/*.sh
shfmt:
name: Shfmt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install shfmt
env:
version: "3.8.0"
run: curl -Ls -o shfmt "https://github.com/mvdan/sh/releases/download/v${{ env.version }}/shfmt_v${{ env.version }}_linux_amd64" && chmod +x shfmt && sudo mv shfmt /usr/local/bin
- name: Lint shell scripts
run: shfmt -i 2 -d hadolint.sh install.sh lib/*.sh test/*.sh
typos:
name: Typos
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Check for typos
uses: crate-ci/typos@v1.22.4