Skip to content

feat(apiv2): add prefix to apiv2 to prod env (#4579) #1827

feat(apiv2): add prefix to apiv2 to prod env (#4579)

feat(apiv2): add prefix to apiv2 to prod env (#4579) #1827

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# ESLint is a tool for identifying and reporting on patterns
# found in ECMAScript/JavaScript code.
# More details at https://github.com/eslint/eslint
# and https://eslint.org
name: ESLint
on:
workflow_dispatch:
push:
branches: ["main"]
jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
strategy:
matrix:
directory:
[
"api",
"admin",
"app",
"devops/send-in-blue",
"packages/lib",
"knowledge-base-public",
"devops/analytics",
]
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install app
run: |
npm i
cd ${{ matrix.directory }}
npm i eslint@^8.56.0 @microsoft/eslint-formatter-sarif
continue-on-error: true
- name: Run ESLint
run: |
cd ${{ matrix.directory }}
npm run lint:report
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ matrix.directory }}/eslint-results.sarif
wait-for-processing: true