test(ci): add test workflow for reusable components #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright AGNTCY Contributors (https://github.com/agntcy) | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: test-reusable-components-action | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "ci/create-reusable-deploy-actions" | |
| jobs: | |
| run-tests-gateway: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Environment | |
| uses: ./.github/actions/deploy-components | |
| with: | |
| deploy-gateway: "true" | |
| deploy-directory: "true" | |
| install-kind-dependency: "true" | |
| install-taskfile-dependency: "true" | |
| - name: Check deployments | |
| shell: bash | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y apt-transport-https ca-certificates curl gnupg | |
| curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.32/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg | |
| sudo chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg | |
| echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.32/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list | |
| sudo chmod 644 /etc/apt/sources.list.d/kubernetes.list | |
| sudo apt-get update | |
| sudo apt-get install -y kubectl | |
| kubectl get deployments |