From caf1444250097e8eaaf790a473fa3603fd9b9348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A1n=20I=2E=20Del=20Valle?= Date: Mon, 16 Nov 2020 21:45:00 -0800 Subject: [PATCH] Removes variables from github actions Github Actions deprecated support for using env files without previously setting them. Adjusting CI scripts accordingly. --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44dd2e3..665cbd8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,17 +10,17 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup Go for use with actions - uses: actions/setup-go@v1.0.0 + uses: actions/setup-go@v2 with: - version: 1.13 + 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/*.go | tee /dev/stderr; done`" - env: - GO_USR_DIRS: $(go list -f {{.Dir}} ./... | grep -E -v "/gen-go/|/vendor/") - name: Create aurora/mesos docker cluster run: docker-compose up -d - name: Run tests - run: go test -timeout 30m -race -coverprofile=coverage.txt -covermode=atomic -v github.com/aurora-scheduler/gorealis/v2 + run: go test -timeout 35m -race -coverprofile=coverage.txt -covermode=atomic -v github.com/aurora-scheduler/gorealis/v2