From 2f7df375f7f45c4e3369874884d687ed227664ff Mon Sep 17 00:00:00 2001 From: Brad Van Vugt <1531419+bvanvugt@users.noreply.github.com> Date: Fri, 3 Jan 2020 15:42:02 -0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 956684a..e33d85b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/setup-go@master with: go-version: '1.13' - - name: gofmt + - name: Run gofmt run: test -z $(gofmt -l .) || (gofmt -d . && exit 1) lint: @@ -24,7 +24,7 @@ jobs: - uses: actions/setup-go@master with: go-version: '1.13' - - name: golangci-lint + - name: Run golangci-lint run: | curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.22.2 ./bin/golangci-lint run -v ./... @@ -38,9 +38,9 @@ jobs: - uses: actions/setup-go@master with: go-version: '1.13' - - name: go test + - name: Run go test run: go test -race -coverprofile=coverage.txt ./... - - name: upload to codecov + - name: Upload coverage to codecov.io if: github.event_name == 'push' uses: codecov/codecov-action@v1 with: