Skip to content

Add tests (bat-core) and CI #1

Add tests (bat-core) and CI

Add tests (bat-core) and CI #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run shellcheck
run: shellcheck hdi
test:
name: Test (${{ matrix.os }})
needs: lint
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install bats-core
run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then
brew install bats-core
else
sudo apt-get update -qq && sudo apt-get install -qq -y bats
fi
- name: Run tests
run: bats test/hdi.bats