Skip to content

fix: error handling when payload contains toString as key #10949

fix: error handling when payload contains toString as key

fix: error handling when payload contains toString as key #10949

Workflow file for this run

name: Tests
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- 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: Run Unit Tests
run: |
npm run test:js:ci
npm run test:ts:ci
- 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: 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