Skip to content

Initial commit of Dialogflow comparison app (#469) #1

Initial commit of Dialogflow comparison app (#469)

Initial commit of Dialogflow comparison app (#469) #1

---
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: VPC-SC Demo Frontend Workflow
on:
push:
branches:
- main
paths:
- 'dialogflow-cx/vpc-sc-demo/frontend/**'
pull_request:
branches:
- main
paths:
- 'dialogflow-cx/vpc-sc-demo/frontend/**'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: dialogflow-cx/vpc-sc-demo/frontend
strategy:
matrix:
node-version: [18.x]
steps:
- name: Harden Runner
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
...