From 170a65a691bbb12b1cd44afccc9d2cca83af5ced Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Mon, 27 Mar 2023 15:45:37 +0100 Subject: [PATCH] ci: update go version Go 1.17.x will be removed and 1.20.x set as default in the GitHub action virtual environment on April 3, 2023. Signed-off-by: Radostin Stoyanov --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index afb4495fd..5d84b6518 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.17.x, 1.18.x, 1.19.x] + go-version: [1.18.x, 1.19.x, 1.20.x] criu_branch: [master, criu-dev] steps: @@ -24,7 +24,7 @@ jobs: sudo make -C criu install-criu PREFIX=/usr - name: install go ${{ matrix.go-version }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} @@ -54,7 +54,7 @@ jobs: sudo make -C test crit-test - name: Check code coverage - if: matrix.go-version == '1.19.x' && matrix.criu_branch == 'criu-dev' + if: matrix.go-version == '1.20.x' && matrix.criu_branch == 'criu-dev' run: | # Run actual test as root as it uses CRIU. sudo env "PATH=$PATH" make coverage