Skip to content

Don't package dev dependencies into production plugin #211

Don't package dev dependencies into production plugin

Don't package dev dependencies into production plugin #211

Workflow file for this run

name: WordPress CI
on:
push:
branches:
- main
- "*.X"
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@86e1ccdd8ddc47bffc29bf667143f363a4cdfdbc
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Composer install prod dependencies
run: composer install --no-dev
# Package before installing dev dependencies so we don't include them in the production zip
- name: Package duo-universal
run: ./package.sh
- name: Composer install dev dependencies
run: composer install
- name: PHP tests
run: ./vendor/bin/phpunit --process-isolation tests
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: duo-universal
path: ./duo-universal.zip