Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

du tests/ adjust the Python binary#645

du tests/ adjust the Python binary

du tests/ adjust the Python binary #645

Workflow file for this run

name:CheckScripts
# spell-checker:ignore ludeeus mfinelli shellcheck scandir shfmt
env:
SCRIPT_DIR:'util'
on:
push:
branches:
-'*'
paths:
-'util/**/*.sh'
pull_request:
branches:
-main
paths:
-'util/**/*.sh'
# End the current execution if there is a new changeset in the PR.
concurrency:
group:${{ github.workflow }}-${{ github.ref }}
cancel-in-progress:${{ github.ref != 'refs/heads/main' }}
jobs:
shell_check:
name:ShellScript/Check
runs-on:ubuntu-latest
permissions:
contents:read
steps:
-uses:actions/checkout@v4
with:
persist-credentials:false
-name:Run ShellCheck
uses:ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS:-s bash
with:
severity:warning
scandir:${{ env.SCRIPT_DIR }}
format:tty
shell_fmt:
name:ShellScript/Format
runs-on:ubuntu-latest
permissions:
contents:read
steps:
-uses:actions/checkout@v4
with:
persist-credentials:false
-name:Setup shfmt
uses:mfinelli/setup-shfmt@v3
-name:Run shfmt
shell:bash
run:|
# fmt options: bash syntax, 4 spaces indent, indent for switch-case
echo "## show the differences between formatted and original scripts..."
find ${{ env.SCRIPT_DIR }} -name "*.sh" -print0 | xargs -0 shfmt -ln=bash -i 4 -ci -d ||true

[8]ページ先頭

©2009-2025 Movatter.jp