Skip to content

ci: modify github workflow to run sq analysis #120

ci: modify github workflow to run sq analysis

ci: modify github workflow to run sq analysis #120

Workflow file for this run

name: Serverless Boilerplate
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
name: Build
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- run: cp .env.dist .env
- run: npm ci
- run: npm run lint
- run: npm run test-coverage
sonarqube-analysis:
runs-on: ubuntu-latest
needs: Build

Check failure on line 22 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Serverless Boilerplate

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 22, Col: 12): Job 'sonarqube-analysis' depends on unknown job 'Build'.
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: sqp_cdf796a422338de063410c70229532ccd1326375
SONAR_HOST_URL: https://sonarqube.aws.tshdev.io