Skip to content

test workflow

test workflow #1

Workflow file for this run

name: lint
on: [push]
jobs:
lint:
name: Run ShellCheck
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install ShellCheck
run: sudo apt-get install shellcheck
- name: Find shell scripts with \#!/bin/sh and run ShellCheck
run: |
files=$(find . -type f ! -path '*/\.*' -exec grep -lE '^#!(/usr)?/bin/sh' {} +)
if [ -n "$files" ]; then
shellcheck -a -S warning -s sh $files
else
echo "No shell scripts with #!/bin/sh shebang found."
fi
test:
name: Run shellspec
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.0.3
#- name: Install curl
# run: sudo apt-get install curl git
#
#- name: Install shellspec
# run: curl -fsSL https://git.io/shellspec | sh