Skip to content

Commit

Permalink
adding_new_yml_build_file
Browse files Browse the repository at this point in the history
  • Loading branch information
Rominos7 committed Mar 3, 2024
1 parent 8824fc6 commit aa39866
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: SonarCloud

on:
push:
branches: [ master, develop ]
pull_request:
types: [opened, synchronize, reopended]

jobs:
sonard_cloud:
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install modules
run: npm i

- name: Build project
run: npm run build

- name: Run unit tests
run: npm run test:cover

- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@develop
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: "https://sonarcloud.io"
with:
projectName: StreetCode_Client
projectDescription: 'Front end side of Street Code app'

0 comments on commit aa39866

Please sign in to comment.