Skip to content

Commit

Permalink
Move client to examples/go-client/ (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
retr0h committed Nov 30, 2023
1 parent 734e9e0 commit 2cda714
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ updates:
interval: "daily"

- package-ecosystem: "gomod"
directory: "test/integration/client/"
directory: "examples/go-client/"
schedule:
interval: "daily"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Display the git commands being executed.

#### Overlay Repository

See example client in `test/integration/client/`.
See example client in `examples/client/`.

```golang
func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module example.com/client

go 1.21.0

replace github.com/retr0h/go-gilt v0.0.0 => ../../../../go-gilt/
replace github.com/retr0h/go-gilt v0.0.0 => ../../../go-gilt/

require (
github.com/lmittmann/tint v1.0.3
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func main() {
{
Git: "https://github.com/retr0h/ansible-etcd.git",
Version: "77a95b7",
DstDir: "../tmp/retr0h.ansible-etcd",
DstDir: "../../test/integration/tmp/retr0h.ansible-etcd",
},
},
}
Expand Down
3 changes: 2 additions & 1 deletion test/integration/test_cli.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

GILT_TEST_BASE_DIR=test/integration
GILT_TEST_BASE_TMP_DIR=${GILT_TEST_BASE_DIR}/tmp
GILT_TEST_CLIENT_DIR=${GILT_TEST_BASE_DIR}/client
GILT_TEST_CLIENT_DIR=examples/go-client
GILT_LIBRARY_DIR=${GILT_TEST_BASE_TMP_DIR}/library
GILT_ROLES_DIR=${GILT_TEST_BASE_TMP_DIR}/roles
GILT_TEST_DIR=${GILT_TEST_BASE_TMP_DIR}/tests
Expand Down Expand Up @@ -182,6 +182,7 @@ teardown() {

@test "invoke gilt client" {
run bash -c "cd ${GILT_TEST_CLIENT_DIR}; go mod tidy; go run main.go"
[ "$status" -eq 0 ]
echo $output

run stat ${GILT_TEST_BASE_TMP_DIR}/retr0h.ansible-etcd/
Expand Down

0 comments on commit 2cda714

Please sign in to comment.