diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b53659..6b56d03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,24 +11,16 @@ jobs: runs-on: ubuntu-latest env: GO_VERSION: '1.20' - GOLANGCI_LINT_VERSION: v1.54.2 + GOLANGCI_LINT_VERSION: v1.62.0 CGO_ENABLED: 0 steps: - - name: Set up Go ${{ env.GO_VERSION }} - uses: actions/setup-go@v4 - with: - go-version: ^${{ env.GO_VERSION }} - - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Cache Go modules - uses: actions/cache@v3 + - name: Set up Go ${{ env.GO_VERSION }} + uses: actions/setup-go@v5 with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version: ^${{ env.GO_VERSION }} - name: Check and get dependencies run: | @@ -40,4 +32,6 @@ jobs: run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION} - name: Make - run: make + run: | + make + git diff --exit-code