diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml index 18fc873d3..382dcff18 100644 --- a/.github/workflows/main-build.yml +++ b/.github/workflows/main-build.yml @@ -16,18 +16,18 @@ jobs: container: ghcr.io/kedacore/keda-tools:1.22.2 steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 lfs: true - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' - name: Go modules cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /go/pkg key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -35,7 +35,7 @@ jobs: ${{ runner.os }}-go- - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: # Username used to log in to a Docker registry. If not set then no login will occur username: ${{ github.repository_owner }} @@ -65,18 +65,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 lfs: true - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: # Username used to log in to a Docker registry. If not set then no login will occur username: ${{ github.repository_owner }} @@ -130,18 +130,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 lfs: true - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' - name: Go modules cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /go/pkg key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -149,7 +149,7 @@ jobs: ${{ runner.os }}-go- - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: # Username used to log in to a Docker registry. If not set then no login will occur username: ${{ github.repository_owner }} diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index aa67f4049..6cbb3c5a7 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -9,17 +9,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: # Username used to log in to a Docker registry. If not set then no login will occur username: ${{ github.repository_owner }} diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 927696fd5..d0cdcaa8f 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -7,12 +7,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 @@ -28,11 +28,42 @@ jobs: name: Static Checks runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: actions/setup-go@v5 with: go-version: '1.22' - name: Get golangci run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.2 - uses: pre-commit/action@v3.0.0 + + test-build: + name: Test Image Build + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + container: ghcr.io/kedacore/keda-tools:1.22.2 + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 1 + lfs: true + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.22' + + - name: Go modules cache + uses: actions/cache@v4 + with: + path: /go/pkg + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + + - name: Test build + run: make docker-build diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index b7076c704..6afb91271 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -15,12 +15,12 @@ jobs: container: ghcr.io/kedacore/keda-tools:1.22.2 steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: # Username used to log in to a Docker registry. If not set then no login will occur username: ${{ github.repository_owner }} @@ -40,7 +40,7 @@ jobs: # https://github.com/sigstore/cosign-installer - name: Install Cosign - uses: sigstore/cosign-installer@v2 + uses: sigstore/cosign-installer@v3 - name: Check Cosign install! run: cosign version diff --git a/.github/workflows/version-diff.yml b/.github/workflows/version-diff.yml index b45c9e875..231390efa 100644 --- a/.github/workflows/version-diff.yml +++ b/.github/workflows/version-diff.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -56,7 +56,7 @@ jobs: old_files: ${{ steps.setup-id.outputs.old_files }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -121,7 +121,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Checkout Pull Request env: