Skip to content

Add multiple version of wordpress in tests #21

Add multiple version of wordpress in tests

Add multiple version of wordpress in tests #21

name: Integration Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
wp-version: [47, 57, 63, 67]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Install dependencies
run: npm ci
- name: Run script
run: ./bin/integration-tests ${{ wp-version }}

Check failure on line 40 in .github/workflows/integration-tests.yml

View workflow run for this annotation

GitHub Actions / Integration Tests

Invalid workflow file

The workflow is not valid. .github/workflows/integration-tests.yml (Line: 40, Col: 14): Unrecognized named-value: 'wp-version'. Located at position 1 within expression: wp-version