From e01f08a7528ea29eee4efc1e32a390b539833957 Mon Sep 17 00:00:00 2001 From: Thomas Ferrandiz Date: Tue, 21 Nov 2023 10:55:51 +0000 Subject: [PATCH] Update github actions to supported versions --- .github/workflows/build.yaml | 20 ++++++++++---------- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/e2eTests.yaml | 6 +++--- .github/workflows/golangci-lint.yaml | 11 ++++++++--- .github/workflows/k3s-e2eTests.yml | 4 ++-- .github/workflows/release.yml | 12 ++++++------ .github/workflows/trivy.yml | 4 ++-- 7 files changed, 33 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ca2f453ffb..7f334aa937 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,10 +12,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} @@ -32,48 +32,48 @@ jobs: done - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Build Docker image for amd64 - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . file: images/Dockerfile.amd64 push: false - name: Build Docker image for arm - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . file: images/Dockerfile.arm push: false - name: Build Docker image for arm64 - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . file: images/Dockerfile.arm64 push: false - name: Build Docker image for s390x - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . file: images/Dockerfile.s390x push: false - name: Build Docker image for ppc64le - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . file: images/Dockerfile.ppc64le push: false - name: Build Docker image for mips64le - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . file: images/Dockerfile.mips64le diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 195cf1ff79..e8b2d79909 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -41,10 +41,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} diff --git a/.github/workflows/e2eTests.yaml b/.github/workflows/e2eTests.yaml index da7180c43f..716ecaacea 100644 --- a/.github/workflows/e2eTests.yaml +++ b/.github/workflows/e2eTests.yaml @@ -8,11 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: ^1.19 + go-version: ^1.20 - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run tests id: testing continue-on-error: true diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 8f03b13d40..9742432f1b 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -1,4 +1,4 @@ -name: build flannel +name: run golangci-lint on: [push, pull_request] @@ -7,8 +7,13 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: '1.20' + cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v2.5.2 + uses: golangci/golangci-lint-action@v3.7.0 with: + version: v1.54 args: "--out-${NO_FUTURE}format colored-line-number --skip-dirs='backend/udp' --timeout=5m" diff --git a/.github/workflows/k3s-e2eTests.yml b/.github/workflows/k3s-e2eTests.yml index 4af20adbe8..a052183db9 100644 --- a/.github/workflows/k3s-e2eTests.yml +++ b/.github/workflows/k3s-e2eTests.yml @@ -12,9 +12,9 @@ jobs: name: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: build flannel image diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2766da4ad4..31fb3884dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,10 +16,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} @@ -98,10 +98,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} @@ -174,10 +174,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index ba06dd9532..682a016464 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -30,10 +30,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }}