-
Notifications
You must be signed in to change notification settings - Fork 45
46 lines (39 loc) · 1.28 KB
/
bdd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: BDD
on:
push:
branches:
- master
jobs:
build:
name: Setup & Run
if: github.repository == 'keikoproj/upgrade-manager'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Prerequisites
run: |
# Getting kustomize
sudo snap install kustomize
# Generating resources files
make manifests
kustomize build config/default -o test-bdd/bases/base_crd-rbac-deployment.yaml
kustomize build test-bdd/bases -o test-bdd/crd-rbac-deployment.yaml
# Setting kubeconfig
aws eks update-kubeconfig --name upgrademgr-eks-nightly --region us-west-2
# Deploying
kubectl apply -f test-bdd/crd-rbac-deployment.yaml
- name: Run BDD
run: |
go get github.com/cucumber/godog/cmd/[email protected]
cd test-bdd
$HOME/go/bin/godog
- name: Cleanup
run: |
kubectl delete deployment upgrade-manager-controller-manager -n upgrade-manager-system