connector-wordpress/.github/workflows/test.yml

31 lines
862 B
YAML
Raw Permalink Normal View History

2021-05-03 22:00:45 +02:00
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
2021-12-09 19:46:19 +01:00
branches: [main]
2021-05-03 22:00:45 +02:00
pull_request:
2021-12-09 19:46:19 +01:00
branches: [main]
2021-05-03 22:00:45 +02:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
2021-05-03 22:00:45 +02:00
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
2021-12-09 19:46:19 +01:00
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
2022-06-03 23:48:19 +02:00
- name: Upgrade NPM
run: npm install -g npm
- run: npm ci --ignore-scripts
2021-12-09 19:46:19 +01:00
- run: npm run build-prod