Hermit upgrade tuc and trh to 0.2.0 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shell script linting | |
name: "Shellcheck" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
shellcheck: | |
name: "shellcheck" | |
strategy: | |
fail-fast: false | |
# Run on Linux | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install shellcheck on Ubuntu | |
run: | | |
sudo apt update | |
sudo apt install shellcheck -y | |
- name: Run shellcheck | |
run: | | |
set -euxo pipefail | |
cd ${{ github.workspace }}/ | |
shellcheck --version | |
for f in $(find . \( -path ./.git -o -path ./bin \) -prune -o -type f -print); do | |
if file "$f" | grep "shell script" &>/dev/null; then | |
shellcheck -x "$f" | |
fi | |
done |