Merge pull request #13 from basicrum/dependabot/npm_and_yarn/playwrig… #4
Workflow file for this run
This file contains hidden or 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: Release Plugin | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build Release Artifact | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Verify release version | |
| env: | |
| BASICRUM_RELEASE_TAG: ${{ github.ref_name }} | |
| run: make conventions | |
| - name: Run WooCommerce E2E page-type tests | |
| run: make woocommerce-e2e | |
| - name: Setup release PHP | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 | |
| with: | |
| php-version: '7.4' | |
| tools: composer:v2 | |
| coverage: none | |
| - name: Install release tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y rsync zip unzip | |
| - name: Build and inspect release artifact | |
| run: sh tools/build-release.sh | |
| - name: Install and test packaged plugin | |
| run: sh tools/smoke-test-release.sh release/basicrum.zip | |
| - name: Create GitHub release and upload assets | |
| uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| generate_release_notes: true | |
| fail_on_unmatched_files: true | |
| files: | | |
| release/basicrum.zip | |
| release/basicrum.zip.sha256 |