name: CI on: pull_request: paths-ignore: - '**.md' - 'LICENSE' - '.github/FUNDING.yml' push: branches: - main paths-ignore: - '**.md' - 'LICENSE' - '.github/FUNDING.yml' jobs: ci: name: Shellcheck + Unit Tests runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Install shellcheck and bats run: sudo apt-get update -qq && sudo apt-get install -y shellcheck bats - name: Run shellcheck on all scripts run: | find . -name "*.sh" -not -path "./.git/*" | sort | xargs shellcheck \ --severity=warning \ --exclude=SC2034,SC1091 \ --shell=bash - name: Run unit tests run: bats tests/