diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b05216..dfd4a74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,15 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.18" + cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v4 with: - version: v1.44 + version: v1.56 env: VERBOSE: "true" @@ -19,16 +23,10 @@ jobs: name: Tidy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: 1.15 - - uses: actions/cache@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version: "1.18" - name: Check if mods are tidy run: make check-tidy @@ -36,18 +34,12 @@ jobs: name: Coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: 1.15 - - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version: "1.18" - name: Publish coverage - uses: paambaati/codeclimate-action@v2.7.4 + uses: paambaati/codeclimate-action@v5.0.0 env: VERBOSE: "true" GOMAXPROCS: 4 @@ -68,20 +60,16 @@ jobs: - macos-latest - windows-latest go_version: - - "1.15" - - "1.16" - - "1.17" + - "1.18" + - "1.19" + - "1.20" + - "1.21" + - "1.22" runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go_version }} - - uses: actions/cache@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version: "1.22" - name: Run tests run: go test -v -count=1 -race ./...