Updated text #150
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: 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 | |