Skip to content

Update build.yml

Update build.yml #7

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud_squad3:
name: SonarCloud_SQ3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: npm install
- name: Test and coverage
run: npm run test --coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
# with:
# args: >
# -Dsonar.organization=shanefindley
# -Dsonar.projectKey=ShaneFindley_react-base
# -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_SQUAD_5}}
SONARCLOUD_URL: "https://squad-5-core.sc-dev.io"