Skip to content

exp: javy& wasmtime-go #11086

exp: javy& wasmtime-go

exp: javy& wasmtime-go #11086

Workflow file for this run

name: codacy-coverage-reporter
on: push
jobs:
test:
name: setup environment and run tests
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Node Setup
uses: actions/setup-node@v2
with:
node-version: 14
- run: npm install
- name: Setup Go
uses: actions/setup-go@v3
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: Set up 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
- 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: Jest
run: npm run test
- name: Jest Integration test
run: npm run test:integration