Skip to content

Commit

Permalink
Set up bats
Browse files Browse the repository at this point in the history
  • Loading branch information
jungaretti committed Aug 21, 2023
1 parent 950f12c commit bd3c17e
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodule: true
- run: ./test/test.bash
env:
PORKBUN_API_KEY: ${{ secrets.PORKBUN_API_KEY }}
Expand Down
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "test/bats"]
path = test/bats
url = https://github.com/bats-core/bats-core.git
[submodule "test/test_helper/bats-support"]
path = test/test_helper/bats-support
url = https://github.com/bats-core/bats-support.git
[submodule "test/test_helper/bats-assert"]
path = test/test_helper/bats-assert
url = https://github.com/bats-core/bats-assert.git
1 change: 1 addition & 0 deletions test/bats
Submodule bats added at fb7d15
Empty file removed test/lib/lib.bash
Empty file.
16 changes: 0 additions & 16 deletions test/test.bash

This file was deleted.

11 changes: 11 additions & 0 deletions test/test.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
setup() {
make
}

@test "ping" {
./bin/bacon ping
}

@test "deploy preview" {
./bin/bacon deploy config.example.yml
}
1 change: 1 addition & 0 deletions test/test_helper/bats-assert
Submodule bats-assert added at 42e4d8
1 change: 1 addition & 0 deletions test/test_helper/bats-support
Submodule bats-support added at 3c8fad

0 comments on commit bd3c17e

Please sign in to comment.