Skip to content

Bump body-parser and express #1445

Bump body-parser and express

Bump body-parser and express #1445

Workflow file for this run

name: 2wp-api build
on: [push, pull_request]
jobs:
checkout-and-build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Generate .env file
run: |
cp .env.test .env
- name: Build & test project
run: |
npm ci
npm run unit-test
npm run eslint
npm run only-coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}