Skip to content

Commit

Permalink
chore: add workflow for e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer committed Apr 16, 2024
1 parent 8902d44 commit 4aeca84
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: e2e

env:
CI_COMMIT_REF_NAME: ${{ github.ref_name }}

on:
pull_request:
branches:
- ci/tests/e2e-workflow
push:
branches:
- ci/tests/e2e-workflow

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

jobs:
show_dev_manifest:
runs-on: ubuntu-latest
name: Show manifest
steps:
- name: Install Task
uses: arduino/setup-task@v2

- uses: azure/setup-kubectl@v3
# default is latest stable
id: install

- uses: actions/checkout@v4

- uses: azure/k8s-set-context@v4
with:
method: service-account
k8s-url: https://api.e2e.virtlab.flant.com
cluster-name: e2e-cluster
token: ${{ secrets.E2E_VIRTUALIZATION_SA_TOKEN }}

- name: Create Namespace
run: |
kubectl create namespace testgh
- name: Get ns and delete
run: |
kubectl get ns | grep testgh
kubectl delete namespace testgh

0 comments on commit 4aeca84

Please sign in to comment.