[Snyk] Security upgrade @grpc/grpc-js from 1.6.7 to 1.8.22 #266
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: release | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*.*.*' | |
- 'v*.*.*' | |
- '*.*.*-*' | |
- 'v*.*.*-*' | |
pull_request: | |
jobs: | |
e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: rinx/[email protected] | |
with: | |
version: latest | |
name: vald | |
agents: 1 | |
- name: check k3d | |
run: | | |
kubectl cluster-info | |
- uses: azure/[email protected] | |
- name: Helm version | |
run: | | |
helm version | |
- name: deploy Vald | |
run: | | |
helm repo add vald https://vald.vdaas.org/charts | |
helm install \ | |
--values ${VALUES} \ | |
--set defaults.image.tag=nightly \ | |
--set agent.ngt.dimension=300 \ | |
--set agent.ngt.auto_index_length=2 \ | |
--set agent.minReplicas=1 \ | |
--set gateway.lb.enabled=false \ | |
--set discoverer.enabled=false \ | |
--set manager.index.enabled=false \ | |
--generate-name vald/vald | |
sleep 3 | |
kubectl wait --for=condition=ready pod -l app=vald-agent-ngt --timeout=3m | |
kubectl get pods | |
env: | |
VALUES: https://raw.githubusercontent.com/vdaas/vald/master/.github/helm/values/values-lb.yaml | |
- name: node dependencies | |
run: | | |
npm install | |
curl -L https://raw.githubusercontent.com/rinx/word2vecjson/master/data/wordvecs1000.json -o tests/wordvecs1000.json | |
- name: run tests | |
run: | | |
kubectl port-forward statefulset/vald-agent-ngt 8081:8081 & | |
pid=$! | |
npm run test | |
kill $pid | |
- name: packing for running exmaple code | |
run: | | |
npm install | |
npm pack | |
- name: verify example codes (js) | |
run: | | |
version=`make vald/client/node/version/print` | |
cd example && npm install ../vald-client-node-${version}.tgz -s -f | |
kubectl port-forward statefulset/vald-agent-ngt 8081:8081 & | |
pid=$! | |
DIM=300 node example.js | |
kill $pid | |
- name: verify example codes (ts) | |
run: | | |
kubectl port-forward statefulset/vald-agent-ngt 8081:8081 & | |
pid=$! | |
version=`make vald/client/node/version/print` | |
npm install -g ts-node | |
cd example-ts | |
npm install ../vald-client-node-${version}.tgz -s -f | |
DIM=300 ts-node example.ts | |
kill $pid | |
publish: | |
if: startsWith( github.ref, 'refs/tags/') | |
needs: | |
- e2e | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Build | |
run: | | |
make npm/deps | |
export GOPATH=$HOME/go | |
make all | |
make vald/sha/update | |
make vald/client/node/version/update | |
rm -rf vald | |
- name: publish | |
run: | | |
npm install | |
npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
release: | |
if: startsWith( github.ref, 'refs/tags/') | |
needs: | |
- e2e | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create release | |
if: startsWith( github.ref, 'refs/tags/') | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false |