diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..35a5205 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: "CI" + +on: [push, pull_request] +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + + - name: Setup BATS + uses: mig4/setup-bats@v1 + with: + bats-version: 1.2.1 + + - name: Check out code + uses: actions/checkout@v1 + + - name: Test + run: bats ./test/test.bats \ No newline at end of file diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 91716b4..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "test/bats"] - path = test/bats - url = https://github.com/bats-core/bats-core.git diff --git a/test/bats b/test/bats deleted file mode 160000 index 190c7c9..0000000 --- a/test/bats +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 190c7c9e793d93eed3ab873f5b6b6c790df44045 diff --git a/test/test.bats b/test/test.bats new file mode 100644 index 0000000..92be748 --- /dev/null +++ b/test/test.bats @@ -0,0 +1,6 @@ +#!/usr/bin/env bats + +@test "can generate config" { + run ./bin/smolgit config + [ "${lines[0]}" = "log:" ] +} \ No newline at end of file