Changing style of setting up github actions env due to the deprecation of the old way.
This commit is contained in:
parent
cea39ddd88
commit
464ef72e6b
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -15,9 +15,9 @@ jobs:
|
|||
go-version: 1.15
|
||||
- name: Install goimports
|
||||
run: go get golang.org/x/tools/cmd/goimports
|
||||
- name: Set env with list of directories in repo containin go code
|
||||
run: echo GO_USR_DIRS=$(go list -f {{.Dir}} ./... | grep -E -v "/gen-go/|/vendor/") >> $GITHUB_ENV
|
||||
- name: Run goimports check
|
||||
run: test -z `for d in $GO_USR_DIRS; do goimports -d "$d" | tee /dev/stderr; done`
|
||||
env:
|
||||
GO_USR_DIRS: $(go list -f {{.Dir}} ./... | grep -E -v "/gen-go/|/vendor/")
|
||||
- name: Run tests
|
||||
run: go build -o australis *.go
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue