From 32f72fb48c705edb60ef36e8494c3afcf60eb6d0 Mon Sep 17 00:00:00 2001 From: Akshay Gaikwad Date: Wed, 9 Mar 2022 11:42:10 +0530 Subject: [PATCH] Add formatter and linter in Go CI checks Commented the format and lint steps because there are many old source code files that need to be fix. It is not a priority at this time. --- .github/workflows/go.yml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 655d3c1..59147a4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,14 +15,34 @@ jobs: os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} - - run: go version + # - name: Format + # run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi - - name: Test all - run: go test -v ./... + - name: Test all + run: go test -v ./... + + # golangci: + # strategy: + # matrix: + # go-version: [1.17.x] + # os: [ubuntu-latest] + # runs-on: ${{ matrix.os }} + # steps: + # - uses: actions/checkout@v2 + + # - name: Set up Go + # uses: actions/setup-go@v2 + # with: + # go-version: ${{ matrix.go-version }} + + # - name: golangci-lint + # uses: golangci/golangci-lint-action@v2 + # with: + # version: v1.44.2