Skip to content

test: change sonarqube configuration to cause analysis to fail when quality gate fails #1128

test: change sonarqube configuration to cause analysis to fail when quality gate fails

test: change sonarqube configuration to cause analysis to fail when quality gate fails #1128

Workflow file for this run

name: Node CI
on: [ pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources 🔰
uses: actions/checkout@v4
- name: Setup Node.js 20 🧮
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache Node.js modules 💾
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies ⏬
run: npm ci
- name: Lint code 💄
run: npm run lint
- name: Typecheck code 👓
run: npm run typecheck
- name: Test code ✅
run: npm run test
env:
CI: true