Skip to content

AAP-37878: move Chatbot test to vitest-browser-react #120

AAP-37878: move Chatbot test to vitest-browser-react

AAP-37878: move Chatbot test to vitest-browser-react #120

name: Chatbot - npm-audit
on:
push:
branches:
- main
paths:
- ansible_ai_connect_chatbot/**
pull_request:
branches:
- main
paths:
- ansible_ai_connect_chatbot/**
jobs:
lint:
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: ./ansible_ai_connect_chatbot
steps:
- name: Checkout commit
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '21.x'
cache: 'npm'
cache-dependency-path: ${{env.WORKING_DIRECTORY}}/package-lock.json
- name: Install Dependencies
run: npm install
working-directory: ${{env.WORKING_DIRECTORY}}
- name: Run npm audit
uses: oke-py/npm-audit-action@v2
with:
audit_level: low
github_token: ${{ secrets.GITHUB_TOKEN }}
create_issues: false
working_directory: ${{env.WORKING_DIRECTORY}}