Skip to content

build(deps): bump next from 14.2.15 to 14.2.21 #81

build(deps): bump next from 14.2.15 to 14.2.21

build(deps): bump next from 14.2.15 to 14.2.21 #81

# Purpose: This file is used to build the project when a pull request is opened, reopened, edited, synchronized, ready for review, or unlocked.
# Name of the workflow
name: Pull Request Checker
# Trigger the workflow when various types of pull request events occur
on:
pull_request:
types:
- opened # triggers the workflow when a pull request is opened.
- reopened # triggers the workflow when a pull request is reopened after being closed.
- edited # triggers the workflow when a pull request is edited (changes are made to the pull request (the title, description, assignees, labels, or other attributes of the pull request))
- synchronize # triggers the workflow when a pull request is synchronized (changes are pushed to the branch associated with the pull request)
- ready_for_review # triggers the workflow when a pull request is marked as ready for review
- unlocked # triggers the workflow when a previously locked pull request is unlocked
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@v3
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
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# If you wish to fail your job when the Quality Gate is red, uncomment the
# following lines. This would typically be used to fail a deployment.
# - uses: sonarsource/sonarqube-quality-gate-action@master
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}