Skip to content

Feature/4.1.0 (#480) #2305

Feature/4.1.0 (#480)

Feature/4.1.0 (#480) #2305

Workflow file for this run

name: 2wp-api build
on: [push, pull_request]
permissions: read-all
jobs:
checkout-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Setup NodeJS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #v4.4.0
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Generate .env file
run: |
cp .env.test .env
- name: Build & test project
run: |
npm ci
npm run test:all
npm run eslint
npm run only-coverage