fix: enhancement: onboard user API for onesignal #1712
Workflow file for this run
This file contains 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
name: Tests | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
ut_tests: | |
name: UT Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/[email protected] | |
with: | |
go-version: 1.17 | |
- name: Install Latest Version of Kind | |
run: go install sigs.k8s.io/[email protected] | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Create Kind cluster | |
run: kind create cluster --name kind-cluster --config=test/__tests__/data/worker-nodes-kind.yml | |
- name: Create OpenFaaS Namespaces | |
run: kubectl apply -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml | |
- name: Setup Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.10.0 | |
- name: Add OpenFaaS Helm Chart | |
run: helm repo add openfaas https://openfaas.github.io/faas-netes/ | |
- name: Deploy OpenFaaS Helm Chart | |
run: | | |
helm repo update \ | |
&& helm upgrade openfaas --install openfaas/openfaas \ | |
--namespace openfaas \ | |
--set functionNamespace=openfaas-fn \ | |
--set basic_auth=false \ | |
--set generateBasicAuth=false \ | |
--set ceScaling=true \ | |
--set async=false \ | |
--set openfaasImagePullPolicy=IfNotPresent \ | |
--set gateway.image=rudderlabs/rudder-openfaas-gateway:0.25.2 \ | |
--set faasnetes.image=rudderlabs/rudder-openfaas-faas-netes:0.15.4 | |
- name: Wait for deployment "gateway" rollout | |
run: kubectl rollout status deploy/gateway --timeout 120s -n openfaas | |
- run: kubectl get events -n openfaas | |
- run: kubectl get pods -n openfaas | |
- name: Port Forwarding to port on gateway-external | |
run: kubectl port-forward service/gateway-external 8080:8080 -n openfaas & | |
- name: User Transformation Tests | |
run: npm run test:ut:integration:ci |