Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/e2eEnvironment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
path: go/src/github.com/kptdev/kpt
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go/src/github.com/kptdev/kpt/go.mod
cache: true
cache-dependency-path: go/src/github.com/kptdev/kpt/go.sum
go-version-file: go.mod
- name: Install Kind
uses: helm/kind-action@v1
with:
version: v0.32.0
install_only: true
- name: Run Tests
working-directory: go/src/github.com/kptdev/kpt
env:
K8S_VERSION: ${{ matrix.version }}
run: |
Expand Down
31 changes: 7 additions & 24 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ on:
branches:
- '!dependabot/*'

env:
GOPATH: ${{ github.workspace }}/go

jobs:
build-test-linux:
name: Build-test-kpt-CLI
Expand All @@ -49,18 +46,13 @@ jobs:
run: |
which podman
podman version
- name: Check out code into the Go module directory
- name: Check out code
uses: actions/checkout@v6
with:
path: ${{ env.GOPATH }}/src/github.com/kptdev/kpt
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go/src/github.com/kptdev/kpt/go.mod
cache: true
cache-dependency-path: go/src/github.com/kptdev/kpt/go.sum
go-version-file: go.mod
- name: Build, Test, Lint
working-directory: ${{ env.GOPATH }}/src/github.com/kptdev/kpt
run: |
git config --global user.email you@example.com
git config --global user.name Your Name
Expand All @@ -72,35 +64,26 @@ jobs:
build-macos:
runs-on: macos-latest
steps:
- name: Check out code into the Go module directory
- name: Check out code
uses: actions/checkout@v6
with:
path: ${{ env.GOPATH }}/src/github.com/kptdev/kpt
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go/src/github.com/kptdev/kpt/go.mod
cache: true
cache-dependency-path: go/src/github.com/kptdev/kpt/go.sum
go-version-file: go.mod
- name: Build
working-directory: ${{ env.GOPATH }}/src/github.com/kptdev/kpt
run: |
make build

# TODO: fix https://github.com/kptdev/kpt/issues/3463
# build-windows:
# runs-on: windows-2019
# steps:
# - name: Check out code
# uses: actions/checkout@v6
# - name: Set up Go
# uses: actions/setup-go@v6
# with:
# go-version: '>=1.24'
# id: go
# - name: Check out code into the Go module directory
# uses: actions/checkout@v5
# with:
# path: ${{ env.GOPATH }}/src/github.com/kptdev/kpt
# go-version-file: go.mod
# - name: Build
# working-directory: ${{ env.GOPATH }}/src/github.com/kptdev/kpt
# run: |
# make build
8 changes: 1 addition & 7 deletions .github/workflows/live-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,16 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v6
with:
path: go/src/github.com/kptdev/kpt
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go/src/github.com/kptdev/kpt/go.mod
cache: true
cache-dependency-path: go/src/github.com/kptdev/kpt/go.sum
go-version-file: go.mod
- name: Install Kind
uses: helm/kind-action@v1
with:
version: v0.32.0
install_only: true

- name: Run Tests
working-directory: go/src/github.com/kptdev/kpt
env:
K8S_VERSION: ${{ matrix.version }}
run: |
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@ jobs:
uses: actions/checkout@v6
with:
fetch-depth: 0
path: go/src/github.com/kptdev/kpt
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go/src/github.com/kptdev/kpt/api/go.mod
cache: true
cache-dependency-path: go/src/github.com/kptdev/kpt/api/go.sum
go-version-file: api/go.mod
cache-dependency-path: api/go.sum
- name: Build, test, lint (api module)
working-directory: ${{ env.GOPATH }}/src/github.com/kptdev/kpt
run: |
git config --global user.email you@example.com
git config --global user.name Your Name
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ jobs:
uses: actions/checkout@v6
with:
fetch-depth: 0
path: go/src/github.com/kptdev/kpt
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go/src/github.com/kptdev/kpt/go.mod
cache: true
cache-dependency-path: go/src/github.com/kptdev/kpt/go.sum
go-version-file: go.mod
- name: Build, Test, Lint
working-directory: go/src/github.com/kptdev/kpt
run: |
git config --global user.email you@example.com
git config --global user.name Your Name
Expand All @@ -61,19 +57,17 @@ jobs:
with:
distribution: goreleaser
version: "~> v2"
workdir: go/src/github.com/kptdev/kpt
args: release --skip=validate -f release/tag/goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate SLSA subjects for provenance
id: hash
working-directory: go/src/github.com/kptdev/kpt
run: |
set -euo pipefail

checksum_file=$(cat dist/artifacts.json | jq -r '.[] | select (.type=="Checksum") | .path')

echo "::set-output name=hashes::$(cat $checksum_file | base64 -w0)"
echo "hashes=$(cat $checksum_file | base64 -w0)" >> "$GITHUB_OUTPUT"

provenance:
needs: [build]
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/verifyContent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
with:
path: go/src/github.com/kptdev/kpt
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go/src/github.com/kptdev/kpt/go.mod
cache: true
cache-dependency-path: go/src/github.com/kptdev/kpt/go.sum
go-version-file: go.mod
- name: Build
working-directory: go/src/github.com/kptdev/kpt
run: |
make build
- name: Get dependencies
working-directory: go/src/github.com/kptdev/kpt
run: |
make install-mdrip
make install-kind
- name: Verify Examples
working-directory: go/src/github.com/kptdev/kpt
run: make site-verify-examples