Skip to content

Commit

Permalink
fixed ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoval committed Jul 24, 2020
1 parent ef5f40d commit e1cb031
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '1.14.0'
- run: ./build.sh
- run: ./generate.sh
- name: golangci-lint
run: |
go get github.com/golangci/golangci-lint/cmd/[email protected]
Expand Down
4 changes: 1 addition & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env bash
set -e
command -v genny >> /dev/null || go get github.com/cheekybits/genny
go generate ./...
goimports -w caching/gen-caching.go
./generate.sh
go build
6 changes: 6 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
command -v genny >> /dev/null || go get github.com/cheekybits/genny
command -v goimports >> /dev/null || go get golang.org/x/tools/cmd/goimports
go generate ./...
goimports -w caching/gen-caching.go
3 changes: 1 addition & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
set -e
source env.sh
go generate ./...
goimports -w caching/gen-caching.go
./generate.sh
export AWS_SDK_LOAD_CONFIG=true
go run main.go "$@"
3 changes: 1 addition & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ set -e
export TEST=1
source env.sh
export AWS_REGION=us-west-2
go generate ./...
goimports -w caching/gen-caching.go
./generate.sh
UPDATE_SNAPSHOTS=true go test ./... $@

0 comments on commit e1cb031

Please sign in to comment.