From 42574ef2545d836eeb5915a9bbb6dfbbd6fd9e15 Mon Sep 17 00:00:00 2001 From: Theofanis Petkos Date: Mon, 17 Jun 2024 20:33:48 +0300 Subject: [PATCH] Update workflows to point to `go.mod` (#84) * Update workflows Signed-off-by: thepetk * Bump up go version to 1.21 and k8s.io/apimachinery to v0.29.2 (#80) * Bump up go to 1.21 and apimachinery to 0.29.2 Signed-off-by: thepetk * Update workflows and documentation Signed-off-by: thepetk --------- Signed-off-by: thepetk * Update .github/workflows/CI.yml Co-authored-by: Michael Valdron Signed-off-by: thepetk * Update .github/workflows/check_registry.yaml Co-authored-by: Michael Valdron Signed-off-by: thepetk * Update .github/workflows/release.yaml Co-authored-by: Michael Valdron Signed-off-by: thepetk * Update .github/workflows/CI.yml Co-authored-by: Michael Valdron Signed-off-by: thepetk * Revert formatting Signed-off-by: thepetk --------- Signed-off-by: thepetk Co-authored-by: Michael Valdron --- .github/workflows/CI.yml | 10 +++++----- .github/workflows/check_registry.yaml | 2 +- .github/workflows/release.yaml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1526236d..3ef0f88d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,9 +1,9 @@ name: CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: @@ -14,7 +14,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: '1.21' + go-version-file: 'go.mod' - name: Check go mod status run: | @@ -62,8 +62,8 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.21 + go-version-file: 'go.mod' - name: Run tests run: make test - name: Codecov - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 \ No newline at end of file + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 diff --git a/.github/workflows/check_registry.yaml b/.github/workflows/check_registry.yaml index 6e328cf1..6d69aaff 100644 --- a/.github/workflows/check_registry.yaml +++ b/.github/workflows/check_registry.yaml @@ -27,7 +27,7 @@ jobs: id: setup-go uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: "1.21" + go-version-file: 'go.mod' - name: Run registries check id: build run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 07092ad4..d3799bff 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,7 +33,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: '1.21' + go-version-file: 'go.mod' - name: Get OS and arch info run: | GOOSARCH=${{matrix.goosarch}} @@ -58,4 +58,4 @@ jobs: draft: false files: ${{env.BINARY_NAME}} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}