From 880e64a968b8fabaa7911341f86058da6d33d9b8 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Tue, 30 Jan 2024 17:08:27 +0100 Subject: [PATCH] [DO NOT MERGE] DEBUGGING ONLY removing all GH wf Signed-off-by: Matej Vasek --- .github/workflows/build.yaml | 28 ---- .github/workflows/check.yaml | 17 -- .github/workflows/ci.yaml | 155 ------------------ .github/workflows/knative-go-build.yaml | 14 -- .github/workflows/knative-go-test.yaml | 17 -- .github/workflows/knative-security.yaml | 17 -- .github/workflows/knative-stale.yaml | 14 -- .github/workflows/knative-style.yaml | 15 -- .github/workflows/knative-verify.yaml | 26 --- .github/workflows/schema.yaml | 16 -- .../workflows/test-e2e-oncluster-runtime.yaml | 49 ------ .github/workflows/test-e2e-oncluster.yaml | 35 ---- .github/workflows/test-e2e-runtime.yaml | 33 ---- .github/workflows/test-e2e.yaml | 26 --- .github/workflows/test-embedded-fs.yaml | 21 --- .github/workflows/test-integration.yaml | 57 ------- .github/workflows/test-podman.yaml | 41 ----- .github/workflows/test-unit.yaml | 41 ----- .github/workflows/update-builder.yaml | 19 --- .../workflows/update-quarkus-platform.yaml | 30 ---- .../workflows/update-springboot-platform.yaml | 30 ---- 21 files changed, 701 deletions(-) delete mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/check.yaml delete mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/knative-go-build.yaml delete mode 100644 .github/workflows/knative-go-test.yaml delete mode 100644 .github/workflows/knative-security.yaml delete mode 100644 .github/workflows/knative-stale.yaml delete mode 100644 .github/workflows/knative-style.yaml delete mode 100644 .github/workflows/knative-verify.yaml delete mode 100644 .github/workflows/schema.yaml delete mode 100644 .github/workflows/test-e2e-oncluster-runtime.yaml delete mode 100644 .github/workflows/test-e2e-oncluster.yaml delete mode 100644 .github/workflows/test-e2e-runtime.yaml delete mode 100644 .github/workflows/test-e2e.yaml delete mode 100644 .github/workflows/test-embedded-fs.yaml delete mode 100644 .github/workflows/test-integration.yaml delete mode 100644 .github/workflows/test-podman.yaml delete mode 100644 .github/workflows/test-unit.yaml delete mode 100644 .github/workflows/update-builder.yaml delete mode 100644 .github/workflows/update-quarkus-platform.yaml delete mode 100644 .github/workflows/update-springboot-platform.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 85a9d18eab..0000000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Func Build - -on: [pull_request] - -jobs: - build: - name: Build - strategy: - matrix: - os: ["ubuntu-latest", "windows-latest", "macos-latest"] - runs-on: ${{ matrix.os }} - steps: - - name: Install Bash 4 on Mac - if: matrix.os == 'macos-latest' - run: | - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - brew update - - brew install bash - brew install gnu-sed - - echo "/usr/local/bin" >> $GITHUB_PATH - echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Build - run: make build - diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml deleted file mode 100644 index a1e41bcbc2..0000000000 --- a/.github/workflows/check.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Func Check Source - -on: [pull_request] - -jobs: - check: - name: Check Source - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Check - run: make check - diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 038324aba4..0000000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,155 +0,0 @@ -name: CI - -on: - push: - branches: - - "main" -jobs: - check: - runs-on: "ubuntu-latest" - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Lint - run: make check && make check-templates - - name: Check that 'func.yaml schema' is up-to-date - run: make schema-check - - name: Check embedded templates content - run: go test -run "^\QTestFileSystems\E$/^\Qembedded\E$" ./pkg/filesystem - - test-unit: - strategy: - matrix: - java: [ 21 ] - os: [ "ubuntu-latest", "windows-latest", "macos-latest" ] - runs-on: ${{ matrix.os }} - steps: - - run: git config --global core.autocrlf false - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} - - name: Unit Test - run: make test - - name: Template Unit Tests - run: make test-templates - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: unit-tests-${{ matrix.os }} - - test-integration: - runs-on: "ubuntu-latest" - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Install Binaries - run: ./hack/binaries.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Local Registry - run: ./hack/registry.sh - - name: Integration Tests - run: make test-integration - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: integration-tests - - e2e-test: - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Install Binaries - run: ./hack/binaries.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Local Registry - run: ./hack/registry.sh - - name: E2E Test - run: make test-e2e - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: e2e-test - - e2e-on-cluster-test: - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: imjasonh/setup-ko@v0.6 - - name: Install Binaries - run: ./hack/binaries.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Setup testing images - run: ./hack/setup-testing-images.sh - - name: Deploy Tekton - run: ./hack/tekton.sh - - name: Deploy Test Git Server - run: ./test/gitserver.sh - - name: E2E On Cluster Test - env: - E2E_RUNTIMES: "" - run: make test-e2e-on-cluster - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: e2e-test-oncluster - - build: - needs: [check, test-unit, test-integration, e2e-test, e2e-on-cluster-test] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - # Standard build tasks - - name: Build - run: make cross-platform - # Upload all build artifacts - - uses: actions/upload-artifact@v2 - with: - name: OSX Binary (AMD) - path: func_darwin_amd64 - - uses: actions/upload-artifact@v2 - with: - name: OSX Binary (ARM) - path: func_darwin_arm64 - - uses: actions/upload-artifact@v2 - with: - name: Linux Binary (AMD) - path: func_linux_amd64 - - uses: actions/upload-artifact@v2 - with: - name: Linux Binary (ARM) - path: func_linux_arm64 - - uses: actions/upload-artifact@v2 - with: - name: Linux Binary (PPC64LE) - path: func_linux_ppc64le - - uses: actions/upload-artifact@v2 - with: - name: Linux Binary (S390X) - path: func_linux_s390x - - uses: actions/upload-artifact@v2 - with: - name: Windows Binary - path: func_windows_amd64.exe - - publish-image: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: imjasonh/setup-ko@v0.6 - - run: ko build --platform=linux/ppc64le,linux/s390x,linux/amd64,linux/arm64 -B ./cmd/func diff --git a/.github/workflows/knative-go-build.yaml b/.github/workflows/knative-go-build.yaml deleted file mode 100644 index 10c3de1a1e..0000000000 --- a/.github/workflows/knative-go-build.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2020 The Knative Authors. -# SPDX-License-Identifier: Apache-2.0 - -# This file is automagically synced here from github.com/knative-extensions/knobots - -name: Build - -on: - pull_request: - branches: [ 'main', 'release-*' ] - -jobs: - build: - uses: knative/actions/.github/workflows/reusable-go-build.yaml@main diff --git a/.github/workflows/knative-go-test.yaml b/.github/workflows/knative-go-test.yaml deleted file mode 100644 index 75d921e216..0000000000 --- a/.github/workflows/knative-go-test.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2022 The Knative Authors. -# SPDX-License-Identifier: Apache-2.0 - -# This file is automagically synced here from github.com/knative-extensions/knobots - -name: Test - -on: - push: - branches: [ 'main', 'release-*' ] - - pull_request: - branches: [ 'main', 'release-*' ] - -jobs: - test: - uses: knative/actions/.github/workflows/reusable-go-test.yaml@main diff --git a/.github/workflows/knative-security.yaml b/.github/workflows/knative-security.yaml deleted file mode 100644 index a6cd68137a..0000000000 --- a/.github/workflows/knative-security.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2020 The Knative Authors. -# SPDX-License-Identifier: Apache-2.0 - -# This file is automagically synced here from github.com/knative-extensions/knobots - -name: 'Security' - -on: - push: - branches: [ 'main', 'release-*' ] - - pull_request: - branches: [ 'main', 'release-*' ] - -jobs: - analyze: - uses: knative/actions/.github/workflows/reusable-security.yaml@main diff --git a/.github/workflows/knative-stale.yaml b/.github/workflows/knative-stale.yaml deleted file mode 100644 index 2e25b9d99a..0000000000 --- a/.github/workflows/knative-stale.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2020 The Knative Authors. -# SPDX-License-Identifier: Apache-2.0 - -# This file is automagically synced here from github.com/knative-extensions/knobots -name: 'Close stale' - -on: - schedule: - - cron: '0 1 * * *' - -jobs: - - stale: - uses: knative/actions/.github/workflows/reusable-stale.yaml@main diff --git a/.github/workflows/knative-style.yaml b/.github/workflows/knative-style.yaml deleted file mode 100644 index 55bb1537cc..0000000000 --- a/.github/workflows/knative-style.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2020 The Knative Authors. -# SPDX-License-Identifier: Apache-2.0 - -# This file is automagically synced here from github.com/knative-extensions/knobots - -name: Code Style - -on: - pull_request: - branches: [ 'main', 'release-*' ] - -jobs: - - style: - uses: knative/actions/.github/workflows/reusable-style.yaml@main diff --git a/.github/workflows/knative-verify.yaml b/.github/workflows/knative-verify.yaml deleted file mode 100644 index e1a28c4f50..0000000000 --- a/.github/workflows/knative-verify.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2020 The Knative Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This file is automagically synced here from github.com/knative-extensions/.github -# repo by knobots: https://github.com/knative-extensions/knobots and will be overwritten. - -name: Verify - -on: - pull_request: - branches: [ 'main', 'release-*' ] - -jobs: - verify: - uses: knative/actions/.github/workflows/reusable-verify-codegen.yaml@main diff --git a/.github/workflows/schema.yaml b/.github/workflows/schema.yaml deleted file mode 100644 index 6649528ceb..0000000000 --- a/.github/workflows/schema.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Func Check Schema - -on: [pull_request] - -jobs: - check: - name: Check Schema - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Check that 'func.yaml schema' is up-to-date - run: make schema-check diff --git a/.github/workflows/test-e2e-oncluster-runtime.yaml b/.github/workflows/test-e2e-oncluster-runtime.yaml deleted file mode 100644 index 518faba0af..0000000000 --- a/.github/workflows/test-e2e-oncluster-runtime.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: Func E2E OnCluster RT Test - -on: [pull_request] - -jobs: - test: - name: On Cluster RT Test - continue-on-error: true - strategy: - matrix: - os: ["ubuntu-latest"] - func_builder: ["pack", "s2i"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: imjasonh/setup-ko@v0.6 - - name: Install Binaries - run: ./hack/binaries.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Setup testing images - run: ./hack/setup-testing-images.sh - - name: Deploy Tekton - run: ./hack/tekton.sh - - name: Deploy Test Git Server - run: ./test/gitserver.sh - - name: E2E On Cluster Test (Runtimes) - env: - TEST_TAGS: runtime - E2E_REGISTRY_URL: registry.default.svc.cluster.local:5000 - FUNC_REPO_REF: ${{ github.event.pull_request.head.repo.full_name }} - FUNC_REPO_BRANCH_REF: ${{ github.head_ref }} - FUNC_BUILDER: ${{ matrix.func_builder }} - run: make test-e2e-on-cluster - - name: Dump Cluster Logs - if: always() - run: | - echo "::group::cluster events" - kubectl get events -A - echo "::endgroup::" - - echo "::group::cluster containers logs" - stern '.*' --all-namespaces --no-follow - echo "::endgroup::" - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: e2e-test-oncluster-runtime diff --git a/.github/workflows/test-e2e-oncluster.yaml b/.github/workflows/test-e2e-oncluster.yaml deleted file mode 100644 index 32470bc26f..0000000000 --- a/.github/workflows/test-e2e-oncluster.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: Func E2E OnCluster Test - -on: [pull_request] - -jobs: - test: - name: On Cluster Test - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: imjasonh/setup-ko@v0.6 - - name: Install Binaries - run: ./hack/binaries.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Setup testing images - run: ./hack/setup-testing-images.sh - - name: Deploy Tekton - run: ./hack/tekton.sh - - name: Deploy Test Git Server - run: ./test/gitserver.sh - - name: E2E On Cluster Test - env: - E2E_RUNTIMES: "" - FUNC_REPO_REF: ${{ github.event.pull_request.head.repo.full_name }} - FUNC_REPO_BRANCH_REF: ${{ github.head_ref }} - run: make test-e2e-on-cluster - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: e2e-test-oncluster diff --git a/.github/workflows/test-e2e-runtime.yaml b/.github/workflows/test-e2e-runtime.yaml deleted file mode 100644 index 0dc87dff7b..0000000000 --- a/.github/workflows/test-e2e-runtime.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Func E2E Lifecycle Test - -on: [pull_request] - -concurrency: - group: ci-e1e-${{ github.ref }}-1 - cancel-in-progress: true - -jobs: - test: - name: E2E Test - continue-on-error: true - strategy: - matrix: - runtime: ["node", "go", "python", "quarkus", "springboot", "typescript", "rust"] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Install Binaries - run: ./hack/binaries.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Local Registry - run: ./hack/registry.sh - - name: Build - run: make - - name: E2E runtime for ${{ matrix.runtime }} - run: make test-e2e-runtime runtime=${{ matrix.runtime }} - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: e2e-test-runtime-${{ matrix.runtime }} diff --git a/.github/workflows/test-e2e.yaml b/.github/workflows/test-e2e.yaml deleted file mode 100644 index 851ea178fa..0000000000 --- a/.github/workflows/test-e2e.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: Func E2E Test - -on: [pull_request] - -jobs: - test: - name: E2E Test - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Install Binaries - run: ./hack/binaries.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Local Registry - run: ./hack/registry.sh - - name: E2E Test - run: make test-e2e - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: e2e-test diff --git a/.github/workflows/test-embedded-fs.yaml b/.github/workflows/test-embedded-fs.yaml deleted file mode 100644 index 04bb6147da..0000000000 --- a/.github/workflows/test-embedded-fs.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Func Embedded FS Test - -on: [pull_request] - -jobs: - test: - name: Func Embedded FS Test - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Check embedded templates content - run: | - if ! go test -run "^\QTestFileSystems\E$/^\Qembedded\E$" ./pkg/filesystem; then - echo "Content of templates directory and embedded FS (zz_filesystem_generated.go) doesn't match!" - echo "Consult https:.github.com/knative/func/blob/main/docs/CONTRIBUTING.md#templates ." - exit 1 - fi diff --git a/.github/workflows/test-integration.yaml b/.github/workflows/test-integration.yaml deleted file mode 100644 index a1b305ee1b..0000000000 --- a/.github/workflows/test-integration.yaml +++ /dev/null @@ -1,57 +0,0 @@ -name: Func Integration Test - -on: [pull_request] - -jobs: - test: - name: Integration Test - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: imjasonh/setup-ko@v0.6 - - name: Install Binaries - run: ./hack/binaries.sh - - name: Local Registry - run: ./hack/registry.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Setup testing images - run: ./hack/setup-testing-images.sh - - name: Install Tekton - run: ./hack/tekton.sh - - name: Set up environment variables - run: | - echo "TEKTON_TESTS_ENABLED=1" >> "$GITHUB_ENV" - echo "GITLAB_TESTS_ENABLED=1" >> "$GITHUB_ENV" - echo "GITLAB_HOSTNAME=gitlab.127.0.0.1.sslip.io" >> "$GITHUB_ENV" - echo "GITLAB_ROOT_PASSWORD=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32})" >> "$GITHUB_ENV" - echo "PAC_CONTROLLER_HOSTNAME=pac-ctr.127.0.0.1.sslip.io" >> "$GITHUB_ENV" - - name: Install Pipelines as Code - run: ./hack/install-pac.sh - - name: Install Gitlab - run: ./hack/install-gitlab.sh - - name: Patch Hosts - run: ./hack/patch-hosts.sh - - name: Integration Test - env: - FUNC_REPO_REF: ${{ github.event.pull_request.head.repo.full_name }} - FUNC_REPO_BRANCH_REF: ${{ github.head_ref }} - run: make test-integration - - name: Dump Cluster Logs - if: always() - run: | - echo "::group::cluster events" - kubectl get events -A - echo "::endgroup::" - - echo "::group::cluster containers logs" - stern '.*' --all-namespaces --no-follow - echo "::endgroup::" - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: integration-tests diff --git a/.github/workflows/test-podman.yaml b/.github/workflows/test-podman.yaml deleted file mode 100644 index 13984970e8..0000000000 --- a/.github/workflows/test-podman.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: Func Podman Test - -on: [pull_request] - -jobs: - test: - name: Podman Test - strategy: - matrix: - os: ["ubuntu-latest"] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Install Podman - run: | - # TODO uncomment following once https:.github.com/containers/podman/pull/16781 is in the kubic repository - #. /etc/os-release - #sudo mkdir -p /etc/apt/keyrings - #curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_${VERSION_ID}/Release.key \ - # | gpg --dearmor \ - # | sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null - #echo \ - # "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\ - # https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_${VERSION_ID}/ /" \ - # | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null - #sudo apt-get update -qq - sudo apt-get -qq -y install podman - podman info - - name: Install Binaries - run: ./hack/binaries.sh - - name: Allocate Cluster - run: ./hack/allocate.sh - - name: Local Registry - run: ./hack/registry.sh - - name: Integration Test Podman - env: - FUNC_REPO_REF: ${{ github.event.pull_request.head.repo.full_name }} - FUNC_REPO_BRANCH_REF: ${{ github.head_ref }} - run: ./hack/test-integration-podman.sh - diff --git a/.github/workflows/test-unit.yaml b/.github/workflows/test-unit.yaml deleted file mode 100644 index fb7af16371..0000000000 --- a/.github/workflows/test-unit.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: Func Unit Test - -on: [pull_request] - -jobs: - test: - name: Unit Test - strategy: - matrix: - java: [21] - os: ["ubuntu-latest", "windows-latest", "macos-latest"] - runs-on: ${{ matrix.os }} - steps: - - name: Install Bash 4 on Mac - if: matrix.os == 'macos-latest' - run: | - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - brew update - - brew install bash - brew install gnu-sed - - echo "/usr/local/bin" >> $GITHUB_PATH - echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH - - run: git config --global core.autocrlf false - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} - - name: Core Unit Tests - run: make test - env: - FUNC_REPO_REF: ${{ github.event.pull_request.head.repo.full_name }} - FUNC_REPO_BRANCH_REF: ${{ github.head_ref }} - - name: Template Unit Tests - run: make test-templates - - uses: codecov/codecov-action@v3 - with: - files: ./coverage.txt - flags: unit-tests-${{ matrix.os }} diff --git a/.github/workflows/update-builder.yaml b/.github/workflows/update-builder.yaml deleted file mode 100644 index 0a4337dd3d..0000000000 --- a/.github/workflows/update-builder.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Update builder-jammy-full image - -on: - schedule: - - cron: '0 */4 * * *' - -jobs: - build-and-push-image: - permissions: - contents: read - packages: write - runs-on: "ubuntu-latest" - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - name: Build and Push - env: - GITHUB_TOKEN: ${{ github.token }} - run: go run ./hack/update-builder.go diff --git a/.github/workflows/update-quarkus-platform.yaml b/.github/workflows/update-quarkus-platform.yaml deleted file mode 100644 index 839a4b521e..0000000000 --- a/.github/workflows/update-quarkus-platform.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: Update Quarkus Platform in embedded templates - -permissions: - contents: write - pull-requests: write - -on: - schedule: - - cron: '0 */4 * * *' - -jobs: - update: - name: Update Quarkus Platform - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: actions/setup-node@v3 - with: - node-version: 18 - - uses: actions/setup-java@v1 - with: - java-version: 21 - - name: Install NPM deps. - run: npm install axios xml2js octokit - - name: Create PR - env: - GITHUB_TOKEN: ${{ github.token }} - run: node ./hack/update-quarkus-platform.js - diff --git a/.github/workflows/update-springboot-platform.yaml b/.github/workflows/update-springboot-platform.yaml deleted file mode 100644 index df695aa3fa..0000000000 --- a/.github/workflows/update-springboot-platform.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: Update Spring Boot Platform in embedded templates - -permissions: - contents: write - pull-requests: write - -on: - schedule: - - cron: '0 */4 * * *' - -jobs: - update: - name: Update Spring Boot Platform - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/composite/go-setup - - uses: actions/setup-node@v3 - with: - node-version: 18 - - uses: actions/setup-java@v1 - with: - java-version: 21 - - name: Install NPM deps. - run: npm install axios xml2js octokit yaml semver - - name: Create PR - env: - GITHUB_TOKEN: ${{ github.token }} - run: node ./hack/update-springboot-platform.js -