From 464ef72e6b24811cf6455aed522ccf49a4fc99b9 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Wed, 14 Oct 2020 20:53:32 -0700 Subject: [PATCH] Changing style of setting up github actions env due to the deprecation of the old way. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16b4952..7696b1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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