Skip to content

Itr8 frontend

Itr8 frontend #3178

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Check if the commit is okay
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "development" branch
push:
branches: ["development"]
pull_request:
branches: ["development", "UI-UX-Overhaul"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
npm config set legacy-peer-deps true
npm install
npm run build
sonarqube_analysis:
runs-on: ubuntu-latest
needs: build
steps:
- name: Set up SSH Connection and Run SonarQube Scanner
uses: appleboy/[email protected]
with:
host: ${{ secrets.SONAR_SERVER }}
username: ${{ secrets.SONAR_USER }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
cd /home/sonar/the-canonizer/canonizer-3.0-frontend;
git stash;
git pull;
/home/sonar/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner \
-Dsonar.projectKey=canonizer-3.0-frontend \
-Dsonar.sources=. \
-Dsonar.host.url=http://110.39.11.117:9033 \
-Dsonar.login=sqp_f81c80af93a57be5d4de83a24e1f9ef55a003049;
cd /home/sonar/the-canonizer/reports/;
python3 canonizer-3.0-frontend-report.py