From d7d2a1568976e14b50a89a0a3ce27df6a80cc35c Mon Sep 17 00:00:00 2001 From: ankur22 Date: Mon, 12 Feb 2024 09:21:46 +0000 Subject: [PATCH 1/2] Update go version in CI test pipeline k6 is using go APIs which are in v1.20. We should ensure our test pipelines also work with this version of go. --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 89321bdf5..2a28030d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.19.x] + go-version: [1.20.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: @@ -72,7 +72,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.19.x] + go-version: [1.20.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: @@ -110,7 +110,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.19.x] + go-version: [1.20.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: From 5a547a4ca26356983a4acbeea848bd6e33fc013d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0nan=C3=A7=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 12 Feb 2024 12:20:00 +0300 Subject: [PATCH 2/2] Bump Github actions --- .github/workflows/block-fixup.yml | 2 +- .github/workflows/e2e.yml | 4 ++-- .github/workflows/lint.yml | 10 +++++----- .github/workflows/test.yml | 18 +++++++++--------- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/block-fixup.yml b/.github/workflows/block-fixup.yml index 567141be1..1e13d04bf 100644 --- a/.github/workflows/block-fixup.yml +++ b/.github/workflows/block-fixup.yml @@ -7,6 +7,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Block Fixup Commit Merge uses: 13rac1/block-fixup-merge-action@v2.0.0 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d0c714deb..d05aefe3b 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -24,10 +24,10 @@ jobs: steps: - name: Checkout code if: matrix.go != 'tip' || matrix.platform != 'windows-latest' - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Go if: matrix.go != 'tip' || matrix.platform != 'windows-latest' - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.x - name: Install Go tip diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 721892492..206dc5ada 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,11 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.19.x check-latest: true @@ -36,11 +36,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.19.x check-latest: true @@ -49,7 +49,7 @@ jobs: echo "::set-output name=Version::$(head -n 1 "${GITHUB_WORKSPACE}/.golangci.yml" | tr -d '# ')" id: version - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: ${{ steps.version.outputs.Version }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a28030d5..48d55fc16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get the k6 version @@ -30,7 +30,7 @@ jobs: run: | echo "Running tests on '${GITHUB_REF}' with '$(git describe --tags --always --long --dirty)' checked out..." - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} check-latest: true @@ -46,9 +46,9 @@ jobs: continue-on-error: true steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.x check-latest: true @@ -77,9 +77,9 @@ jobs: runs-on: ${{ matrix.platform }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} check-latest: true @@ -101,7 +101,7 @@ jobs: - name: Generate coverage HTML report run: go tool cover -html=coverage.txt -o coverage.html - name: Upload coverage report - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: test-coverage-report-${{ matrix.platform }} path: coverage.html @@ -115,9 +115,9 @@ jobs: runs-on: ${{ matrix.platform }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} check-latest: true