From b1f7f11906f15c546e53faea7dc2e724641546cd Mon Sep 17 00:00:00 2001 From: tomas-mota Date: Thu, 10 Nov 2022 21:10:11 +0100 Subject: [PATCH 1/8] replace set-output with gh environment variable Signed-off-by: tomas-mota --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48e4b3d..2e67802 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,12 +54,12 @@ jobs: - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(make go.cachedir)" + run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache uses: actions/cache@v2 with: - path: ${{ steps.go.outputs.cache }} + path: ${{ env.cachedir }} key: ${{ runner.os }}-build-lint-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-lint- @@ -100,12 +100,12 @@ jobs: - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(make go.cachedir)" + run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache uses: actions/cache@v2 with: - path: ${{ steps.go.outputs.cache }} + path: ${{ env.cachedir }} key: ${{ runner.os }}-build-check-diff-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-check-diff- @@ -143,12 +143,12 @@ jobs: - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(make go.cachedir)" + run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache uses: actions/cache@v2 with: - path: ${{ steps.go.outputs.cache }} + path: ${{ env.cachedir }} key: ${{ runner.os }}-build-unit-tests-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-unit-tests- @@ -203,12 +203,12 @@ jobs: - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(make go.cachedir)" + run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache uses: actions/cache@v2 with: - path: ${{ steps.go.outputs.cache }} + path: ${{ env.cachedir }} key: ${{ runner.os }}-build-e2e-tests-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-e2e-tests- @@ -265,12 +265,12 @@ jobs: - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(make go.cachedir)" + run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache uses: actions/cache@v2 with: - path: ${{ steps.go.outputs.cache }} + path: ${{ env.cachedir }} key: ${{ runner.os }}-build-publish-artifacts-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-publish-artifacts- From efe1a4264b0c5f55ce0bd726054c6e5fe8d1443d Mon Sep 17 00:00:00 2001 From: tomas-mota Date: Thu, 10 Nov 2022 21:14:01 +0100 Subject: [PATCH 2/8] update to actions/cache@v3 Signed-off-by: tomas-mota --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e67802..7e7eedb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,14 +57,14 @@ jobs: run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ env.cachedir }} key: ${{ runner.os }}-build-lint-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-lint- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -103,14 +103,14 @@ jobs: run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ env.cachedir }} key: ${{ runner.os }}-build-check-diff-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-check-diff- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -146,14 +146,14 @@ jobs: run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ env.cachedir }} key: ${{ runner.os }}-build-unit-tests-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-unit-tests- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -206,14 +206,14 @@ jobs: run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ env.cachedir }} key: ${{ runner.os }}-build-e2e-tests-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-e2e-tests- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -268,14 +268,14 @@ jobs: run: echo "cachedir=$(make go.cachedir)" >> $GITHUB_ENV - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ env.cachedir }} key: ${{ runner.os }}-build-publish-artifacts-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-publish-artifacts- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} From d6bb2e6d741a2dc973034454e39d45c0132fcdb7 Mon Sep 17 00:00:00 2001 From: tomas-mota Date: Thu, 10 Nov 2022 21:15:04 +0100 Subject: [PATCH 3/8] bub setup-go action to v3 Signed-off-by: tomas-mota --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e7eedb..b7e7434 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: submodules: true - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} @@ -94,7 +94,7 @@ jobs: submodules: true - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} @@ -137,7 +137,7 @@ jobs: run: git fetch --prune --unshallow - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} @@ -197,7 +197,7 @@ jobs: run: git fetch --prune --unshallow - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} @@ -259,7 +259,7 @@ jobs: run: git fetch --prune --unshallow - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ env.GO_VERSION }} From b87b29c2bb9e07a67392ddadcbfabe7d7c3283d9 Mon Sep 17 00:00:00 2001 From: tomas-mota Date: Thu, 10 Nov 2022 21:18:13 +0100 Subject: [PATCH 4/8] update checkout action to v3 Signed-off-by: tomas-mota --- .github/workflows/backport.yml | 2 +- .github/workflows/ci.yml | 10 +++++----- .github/workflows/codeql.yml | 2 +- .github/workflows/commands.yml | 2 +- .github/workflows/promote.yml | 2 +- .github/workflows/tag.yml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 7e678a4..7016b8c 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -22,7 +22,7 @@ jobs: if: github.event.pull_request.merged steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7e7434..399aa5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true @@ -89,7 +89,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true @@ -129,7 +129,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true @@ -189,7 +189,7 @@ jobs: install: true - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true @@ -251,7 +251,7 @@ jobs: install: true - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 5426394..fee244f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml index 96a24a0..7a1ab52 100644 --- a/.github/workflows/commands.yml +++ b/.github/workflows/commands.yml @@ -80,7 +80,7 @@ jobs: permission-level: write - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index c5caf54..a63c4ae 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 24c5cb1..db32dd0 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Create Tag uses: negz/create-tag@v1 From 8011f3d549254d045acc16c75477ba67bc80c615 Mon Sep 17 00:00:00 2001 From: tomas-mota Date: Thu, 10 Nov 2022 21:38:33 +0100 Subject: [PATCH 5/8] update docker actions Signed-off-by: tomas-mota --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 399aa5e..3a53b51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,12 +178,12 @@ jobs: steps: - name: Setup QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: platforms: all - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: version: ${{ env.DOCKER_BUILDX_VERSION }} install: true From e16eb64add69c56b5a2a42ae2f2c80829088746a Mon Sep 17 00:00:00 2001 From: tomas-mota Date: Thu, 10 Nov 2022 21:39:56 +0100 Subject: [PATCH 6/8] update publish versions Signed-off-by: tomas-mota --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a53b51..eb0f684 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -240,12 +240,12 @@ jobs: steps: - name: Setup QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: platforms: all - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: version: ${{ env.DOCKER_BUILDX_VERSION }} install: true From 097abaf9b3932fdaf121ae785ab26ea91bdd4b9b Mon Sep 17 00:00:00 2001 From: tomas-mota Date: Thu, 10 Nov 2022 21:48:51 +0100 Subject: [PATCH 7/8] update to golangci-lint-action@v3 Signed-off-by: tomas-mota --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb0f684..a57cbfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,10 +77,9 @@ jobs: # this action because it leaves 'annotations' (i.e. it comments on PRs to # point out linter violations). - name: Lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: version: ${{ env.GOLANGCI_VERSION }} - skip-go-installation: true check-diff: runs-on: ubuntu-22.04 From 22a25c357893ef6ad45302494cbc142d75aa244f Mon Sep 17 00:00:00 2001 From: tomas-mota Date: Thu, 10 Nov 2022 21:53:16 +0100 Subject: [PATCH 8/8] bump codecov and upload-artifact actions Signed-off-by: tomas-mota --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a57cbfd..a546299 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,7 +165,7 @@ jobs: run: make -j2 test - name: Publish Unit Test Coverage - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: flags: unittests file: _output/tests/linux_amd64/coverage.txt @@ -291,7 +291,7 @@ jobs: BUILD_ARGS: "--load" - name: Publish Artifacts to GitHub - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: output path: _output/**