diff --git a/.github/workflows/pr-extra.yml b/.github/workflows/pr-extra.yml index 764d319..44a9cdb 100644 --- a/.github/workflows/pr-extra.yml +++ b/.github/workflows/pr-extra.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.21 - name: Run go list run: go list -json -m all > go.list - name: Nancy diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3a73ab0..015c432 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,7 +16,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.21 - name: Checkout code uses: actions/checkout@v2 - name: Check go mod @@ -31,10 +31,10 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.21 - uses: actions/checkout@v2 - name: lint - uses: golangci/golangci-lint-action@v2.4.0 + uses: golangci/golangci-lint-action@v4.0.0 with: version: latest @@ -46,17 +46,17 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.17 # test only the latest go version to speed up CI - - uses: actions/cache@v2.1.4 + go-version: 1.21 # test only the latest go version to speed up CI + - uses: actions/cache@v4 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-1.17-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-1.21-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go-${{ matrix.golang }}- - name: Setup gotestsum - uses: autero1/action-gotestsum@v1.0.0 + uses: autero1/action-gotestsum@v2.0.0 with: - gotestsum_version: 1.7.0 + gotestsum_version: 1.11.0 - name: Run tests run: gotestsum --format short-verbose ./... @@ -68,17 +68,17 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.17 # test only the latest go version to speed up CI - - uses: actions/cache@v2.1.4 + go-version: 1.21 # test only the latest go version to speed up CI + - uses: actions/cache@v4 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-1.17-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-1.21-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go-${{ matrix.golang }}- - name: Setup gotestsum - uses: autero1/action-gotestsum@v1.0.0 + uses: autero1/action-gotestsum@v2.0.0 with: - gotestsum_version: 1.7.0 + gotestsum_version: 1.11.0 - name: Run tests run: gotestsum --format short-verbose ./... @@ -90,16 +90,16 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.17 # test only the latest go version to speed up CI - - uses: actions/cache@v2.1.4 + go-version: 1.21 # test only the latest go version to speed up CI + - uses: actions/cache@v4 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-1.17-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-1.21-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go-${{ matrix.golang }}- - name: Setup gotestsum - uses: autero1/action-gotestsum@v1.0.0 + uses: autero1/action-gotestsum@v2.0.0 with: - gotestsum_version: 1.7.0 + gotestsum_version: 1.11.0 - name: Run tests run: gotestsum --format short-verbose ./...