Skip to content

Merge pull request #7 from auditive-tokyo/dependabot/npm_and_yarn/fla… #5

Merge pull request #7 from auditive-tokyo/dependabot/npm_and_yarn/fla…

Merge pull request #7 from auditive-tokyo/dependabot/npm_and_yarn/fla… #5

Workflow file for this run

name: SonarCloud Analysis
on:
push:
branches:
- main
paths-ignore:
- "README.md"
- ".gitignore"
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests with coverage
run: npm run test:coverage
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
VECTOR_STORE_ID: ${{ secrets.VECTOR_STORE_ID }}
PROMPT_TEMPLATE_ID: ${{ secrets.PROMPT_TEMPLATE_ID }}
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}