Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies and refactor codegen #4

Merged
merged 8 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
74 changes: 14 additions & 60 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,14 @@ on:

jobs:

vendor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Vendor
run: |
make vendor
git diff --exit-code

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Build
run: make

Expand All @@ -43,11 +30,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build docs
run: |
make gen-docs
git diff --exit-code
go-version: 1.23
# https://github.com/castai/kilo/issues/5
# - name: Build docs
# run: |
# make gen-docs
# git diff --exit-code

linux:
runs-on: ubuntu-latest
Expand All @@ -56,7 +44,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Build kg and kgctl for all Linux Architectures
run: make all-build

Expand All @@ -67,7 +55,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Build kgctl for Darwin amd64
run: make OS=darwin ARCH=amd64
- name: Build kgctl for Darwin arm64
Expand All @@ -80,7 +68,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Build kgctl for Windows
run: make OS=windows

Expand All @@ -91,7 +79,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Run Unit Tests
run: make unit

Expand All @@ -102,7 +90,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Run e2e Tests
run: make e2e

Expand All @@ -113,7 +101,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Lint Code
run: make lint

Expand All @@ -124,41 +112,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Container
run: make container

push:
if: github.event_name != 'pull_request'
needs:
- vendor
- build
- linux
- darwin
- windows
- unit
- lint
- container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
if: github.event_name != 'pull_request'
run: make manifest
- name: Build and push latest
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
run: make manifest-latest
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.23
- name: Build kgctl Binaries to Be Released
run: make release
- name: Publish Release
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
bin/
tmp/
e2e/kind.yaml*
hack/tools/controller-gen
hack/tools/controller-gen-v0.16.1
hack/tools/openshift-goimports
hack/tools/openshift-goimports-c72f1dc2e3aacfa00aece3391d938c9bc734e791
hack/tools/yaml-patch
hack/tools/yaml-patch-v0.0.11
13 changes: 0 additions & 13 deletions .header

This file was deleted.

Loading
Loading