diff --git a/.github/actions/lint/action.yml b/.github/actions/lint/action.yml index 841badbed575..0e42ed1da3cf 100644 --- a/.github/actions/lint/action.yml +++ b/.github/actions/lint/action.yml @@ -7,7 +7,7 @@ runs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x check-latest: true - name: Get golangci-lint version and download rules shell: bash diff --git a/.github/workflows/arm-tests.yml b/.github/workflows/arm-tests.yml index 30ac47dc7aff..ba901de0bb20 100644 --- a/.github/workflows/arm-tests.yml +++ b/.github/workflows/arm-tests.yml @@ -13,7 +13,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.21.x check-latest: true - name: Run tests run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ab4376129e2..5641199287f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ env: LI_DOCKER_IMAGE_ID: "loadimpact/k6" DOCKER_IMAGE_ID: "grafana/k6" GHCR_IMAGE_ID: ${{ github.repository }} - DEFAULT_GO_VERSION: "1.20.x" + DEFAULT_GO_VERSION: "1.21.x" jobs: configure: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6dac771964d3..4861ce7b0476 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.21.x check-latest: true - name: Check dependencies run: | @@ -40,4 +40,4 @@ jobs: with: fetch-depth: 0 - name: Run linters - uses: ./.github/actions/lint/ \ No newline at end of file + uses: ./.github/actions/lint/ diff --git a/.github/workflows/tc39.yml b/.github/workflows/tc39.yml index 8c0a90ef542f..92d736e5becf 100644 --- a/.github/workflows/tc39.yml +++ b/.github/workflows/tc39.yml @@ -22,7 +22,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.21.x check-latest: true - name: Run tests run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb18cab12fd6..b425f6f03f2a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.19.x] + go-version: [1.20.x] platform: [ubuntu-latest, windows-2019] runs-on: ${{ matrix.platform }} steps: @@ -87,7 +87,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.20.x] + go-version: [1.21.x] platform: [ubuntu-latest, windows-2019] runs-on: ${{ matrix.platform }} steps: diff --git a/.github/workflows/xk6.yml b/.github/workflows/xk6.yml index 84473739df37..dfd4906439e8 100644 --- a/.github/workflows/xk6.yml +++ b/.github/workflows/xk6.yml @@ -24,7 +24,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.21.x check-latest: true - name: Install Go tip if: matrix.go == 'tip' diff --git a/Dockerfile b/Dockerfile index a1f5affabad3..462ac9e3b894 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-alpine3.17 as builder +FROM golang:1.21-alpine3.17 as builder WORKDIR $GOPATH/src/go.k6.io/k6 COPY . . RUN apk --no-cache add git=~2