From c7a405ce75e1f22f33f0a9ef716dc359fccf6d5b Mon Sep 17 00:00:00 2001 From: Pion <59523206+pionbot@users.noreply.github.com> Date: Mon, 16 Nov 2020 18:51:34 +0000 Subject: [PATCH] Update CI configs to v0.4.14 Update lint scripts and CI configs. --- .github/workflows/test.yaml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a068bab..6a4cea2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,7 +22,7 @@ jobs: go-version: ${{ matrix.go }} - name: Set test packages - run: echo ::set-env name=TEST_PACKAGES::$(go list ./... | grep -v examples) + run: echo "TEST_PACKAGES=$(go list ./... | grep -v examples)" >> $GITHUB_ENV - name: Run test run: | @@ -58,7 +58,7 @@ jobs: ${{ runner.os }}-go- - name: Set test packages - run: echo ::set-env name=TEST_PACKAGES::$(go list ./... | grep -v examples) + run: echo "TEST_PACKAGES=$(go list ./... | grep -v examples)" >> $GITHUB_ENV - name: Run test run: | @@ -96,7 +96,7 @@ jobs: ${{ runner.os }}-go- - name: Set test packages - run: echo ::set-env name=TEST_PACKAGES::$(go list ./... | grep -v examples) + run: echo "TEST_PACKAGES=$(go list ./... | grep -v examples)" >> $GITHUB_ENV - name: Download Go run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf - @@ -104,23 +104,20 @@ jobs: GO_VERSION: 1.15 - name: Set Go Root - run: echo ::set-env name=GOROOT::${HOME}/go + run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV - name: Set Go Path - run: echo ::set-env name=GOPATH::${HOME}/go + run: echo "GOPATH=${HOME}/go" >> $GITHUB_ENV - - name: Update Path - run: echo ::set-env name=PATH::${GOROOT}/bin:${PATH} - - - name: Set Go WASM Exec - run: echo ::set-env name=GO_JS_WASM_EXEC::${GOROOT}/misc/wasm/go_js_wasm_exec + - name: Set Go Path + run: echo "GO_JS_WASM_EXEC=${GOROOT}/misc/wasm/go_js_wasm_exec" >> $GITHUB_ENV - name: Insall NPM modules run: yarn install - name: Run Tests run: | - GOOS=js GOARCH=wasm go test \ + GOOS=js GOARCH=wasm $GOPATH/bin/go test \ -coverprofile=cover.out -covermode=atomic \ -exec="${GO_JS_WASM_EXEC}" \ -v ${TEST_PACKAGES}