Skip to content

Merge branch 'main' of github.com:newtovaux/platforminfo #145

Merge branch 'main' of github.com:newtovaux/platforminfo

Merge branch 'main' of github.com:newtovaux/platforminfo #145

Workflow file for this run

name: Plugin Build
on: [push, pull_request, workflow_dispatch]
jobs:
plugin-build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1', '8.2']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '1'
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer
- name: Build the plugin into a zip file
run: |
composer update
composer run build
- name: Test the built file is a valid zip
run: |
ls -al platforminfo.zip
zip -T platforminfo.zip
unzip -tl platforminfo.zip