Skip to content

chore(deps): docker/login-action v3 #300

chore(deps): docker/login-action v3

chore(deps): docker/login-action v3 #300

Workflow file for this run

name: Lint
on:
pull_request:
jobs:
validate-renovate-config:
name: Validate renovate config
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: validate
uses: rinchsan/[email protected]
with:
pattern: ".github/renovate.json"
shellcheck:
runs-on: ubuntu-22.04
name: Shellcheck
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install Shellcheck
env:
version: "0.9.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 -x -f gcc -S warning sh/*.sh test/*.{sh,bash}
hadolint:
runs-on: ubuntu-22.04
name: Hadolint
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: jbergstroem/[email protected]
with:
error_level: 2
actionlint:
name: Actionlint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install Actionlint
env:
version: "1.6.25"
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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/[email protected]
with:
node-version: "18.11.0"
- name: Install prettier
run: npm install -g prettier
- name: Run prettier
run: prettier -c .
shfmt:
name: Shfmt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Install shfmt
env:
version: "3.7.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 sh/*.sh test/*.sh