From aa398663b9d77cdeafdfb72f0255d3c15a675f97 Mon Sep 17 00:00:00 2001 From: Rominos7 Date: Sun, 3 Mar 2024 20:52:56 +0200 Subject: [PATCH] adding_new_yml_build_file --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..d4421ae3b --- /dev/null +++ b/.github/workflows/build.yml @@ -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'