Skip to content

Commit

Permalink
update dev loop
Browse files Browse the repository at this point in the history
  • Loading branch information
widmogrod committed Mar 31, 2024
1 parent a7c9c86 commit 8e6a8c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,15 @@ jobs:
go-version: ^1.21
id: go

- name: Add $GOPATH/bin to $PATH
run: |
echo "${{ env.GOPATH }}/bin" >> $GITHUB_PATH
echo $GITHUB_PATH
echo "asd"
echo $(go env GOPATH)/bin
- run: cd cmd/mkunion; go get -v -t -d ./...
- run: cd cmd/mkunion; go build -o mkunion

- run: |
go install github.com/matryer/moq@latest
which moq
- run: go install github.com/matryer/moq@latest

- run: go get -v -t -d ./...
- run: go generate ./...

# initiate docker-compose services
- run: |
pip install awscli-local
- run: pip install awscli-local
- run: dev/bootstrap.sh -nologs

# run tests
Expand Down
10 changes: 8 additions & 2 deletions dev/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ command -v docker-compose >/dev/null 2>&1 || { echo >&2 "docker-compose is not i
command -v awslocal >/dev/null 2>&1 || { echo >&2 "awslocal is not installed. Aborting. Please run
pip install awscli-local "; exit 1; }

# check for moq
command -v moq >/dev/null 2>&1 || { echo >&2 "moq is not installed. Aborting please run
go install github.com/matryer/moq@latest"; exit 1; }

echo "Creating volume directory"
mkdir -p $cwd/_volume

echo "Install moq"
go get github.com/matryer/moq@latest
if [ "$1" == "-install-only" ]; then
trap - EXIT
exit 0
fi

echo "Starting localstack"
docker compose -f $cwd/compose.yml up -d
Expand Down

0 comments on commit 8e6a8c8

Please sign in to comment.