WP authors migration command - post type argument. #184
Workflow file for this run
This file contains 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
name: JavaScript Tests | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'main' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
name: Test the Build | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Debugging | |
run: | | |
node -v | |
npm -v | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
run: | | |
echo "::set-output name=dir::$(npm config get cache)" | |
echo "::set-output name=npm-version::$(npm -v)" | |
echo "::set-output name=node-version::$(node-v)" | |
- name: Cache Dependencies | |
id: npm-cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-npm-${{ steps.npm-cache-dir.outputs.node-version }}-${{ steps.npm-cache-dir.outputs.npm-version }}-${{ hashFiles('package-lock.json') }} | |
- name: Install Dependencies | |
run: npm install --legacy-peer-deps | |
- name: Run the build | |
run: | | |
npm run lint | |
npm run build |