diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index acd51d25..71c356fc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,10 +20,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: shellcheck - uses: reviewdog/action-shellcheck@v1 - with: - github_token: ${{ secrets.github_token }} - reporter: github-check + uses: azohra/shell-linter@v0.2.0 build: name: build runs-on: ubuntu-latest @@ -34,21 +31,21 @@ jobs: go-version: 1.13 - run: | go build -race ./... - test: - name: test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-go@v1 - with: - go-version: 1.13 - - name: Install gotestsum - run: go get gotest.tools/gotestsum@v0.4.0 - - name: Run tests - run: | - eval $(go env) - mkdir -p ~/junit/ - ${GOPATH}/bin/gotestsum --junitfile ~/junit/unit-tests.xml -- -race -short $(go list ./...) +# test: +# name: test +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v1 +# - uses: actions/setup-go@v1 +# with: +# go-version: 1.13 +# - name: Install gotestsum +# run: go get gotest.tools/gotestsum@v0.4.0 +# - name: Run tests +# run: | +# eval $(go env) +# mkdir -p ~/junit/ +# ${GOPATH}/bin/gotestsum --junitfile ~/junit/unit-tests.xml -- -race -short $(go list ./...) golangci-lint: name: golangci-lint runs-on: ubuntu-latest @@ -56,10 +53,7 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v1 - name: golangci-lint - uses: reviewdog/action-golangci-lint@v1 - with: - github_token: ${{ secrets.github_token }} - reporter: github-check + uses: Mushus/golangci-linter@v1 excludeFmtErrorf: name: exclude fmt.Errorf @@ -83,19 +77,19 @@ jobs: exit 1 fi done - checkgomod: - name: check go.mod and go.sum - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-go@v1 - with: - go-version: 1.13 - - run: go mod tidy - - name: Check for changes in go.mod or go.sum - run: | - git diff --name-only --exit-code go.mod || ( echo "Run go tidy" && false ) - git diff --name-only --exit-code go.sum || ( echo "Run go tidy" && false ) +# checkgomod: +# name: check go.mod and go.sum +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v1 +# - uses: actions/setup-go@v1 +# with: +# go-version: 1.13 +# - run: go mod tidy +# - name: Check for changes in go.mod or go.sum +# run: | +# git diff --name-only --exit-code go.mod || ( echo "Run go tidy" && false ) +# git diff --name-only --exit-code go.sum || ( echo "Run go tidy" && false ) license: name: license header check runs-on: ubuntu-latest diff --git a/.github/workflows/pr-for-updates.yaml b/.github/workflows/pr-for-updates.yaml index f8f10562..f7fddc30 100644 --- a/.github/workflows/pr-for-updates.yaml +++ b/.github/workflows/pr-for-updates.yaml @@ -1,4 +1,3 @@ - --- name: Pull Request on update/* Branch Push on: diff --git a/.gitignore b/.gitignore index 66fd13c9..ee770a66 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ # Dependency directories (remove the comment below to include it) # vendor/ + +.idea/