AYS-616 | Fix reference number filter input to accept more than 10 ch… #155
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Purpose: This file is used for check application health. | |
# Name of the workflow | |
name: Application Status | |
on: | |
push: | |
branches: | |
- main # Trigger the workflow when a push event occurs on the main branch | |
jobs: | |
build: # Define the "build" job | |
runs-on: ubuntu-latest # Run the job on the latest version of Ubuntu | |
steps: # List of steps to execute within the job | |
- name: Update package cache # Step to update the package cache | |
run: sudo apt-get update | |
- name: Checkout code # Step to check out the code from the repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- uses: actions/setup-node@v4 # Step to set up Node.js | |
with: | |
node-version: 18 | |
- name: Install npm # Install with npm | |
run: npm install | |
- name: Build Project # Build with npm | |
run: npm run build | |
- uses: sonarsource/sonarqube-scan-action@v3 # Performs the project analysis using SonarQube Scanner. | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | |
# If you wish to not fail your job when the Quality Gate is red, comment out the | |
# following lines. | |
- uses: sonarsource/sonarqube-quality-gate-action@master # Checks the SonarQube Quality Gate status. | |
timeout-minutes: 5 | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |