Skip to content

Commit

Permalink
chore: Update to Go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
hrak committed Aug 12, 2024
1 parent b0d5632 commit c20a095
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
- name: Run go test with coverage
run: COVER_PROFILE=coverage.txt make test
- name: Codecov upload
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Install Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'

- name: Check out code
uses: actions/checkout@v4
Expand All @@ -21,7 +21,7 @@ jobs:

build:
name: Test & Build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Install Go 1.x
uses: actions/setup-go@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
jobs:
push:
name: Push images
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Check out code
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

# Run only if previous job has succeeded
needs: [push]
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ lint: $(GOLANGCI_LINT) generate-mocks ## Run linting for the project.

.PHONY: modules
modules: ## Runs go mod to ensure proper vendoring.
go mod tidy -compat=1.21
cd $(TOOLS_DIR); go mod tidy -compat=1.21
go mod tidy -compat=1.22
cd $(TOOLS_DIR); go mod tidy -compat=1.22

.PHONY: generate-all
generate-all: generate-mocks generate-conversion generate-deepcopy generate-manifests
Expand Down

0 comments on commit c20a095

Please sign in to comment.