Skip to content

build(deps): bump actions/checkout from 6 to 7 #32

build(deps): bump actions/checkout from 6 to 7

build(deps): bump actions/checkout from 6 to 7 #32

name: Check Pull Request
permissions:
contents: read
on:
pull_request:
branches:
- main
- minimal
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
pr-validator:
name: Run Pull Request Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Test code and Create Test Coverage Reports
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
- name: Security audit
run: npm run security-audit
- run: |
npm ci
npm run format:check
npm run lint
npm test
- name: Test Docker Image Build
run: |
set +e
docker build --no-cache --tag cdp-node-backend-template .
exit $?
- name: SonarCloud Scan
if: github.actor != 'dependabot[bot]'
uses: SonarSource/sonarqube-scan-action@v8.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.PESTICIDES_SONAR_TOKEN }}