Skip to content

Commit

Permalink
Add cypress test to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBatdorf committed Jun 14, 2022
1 parent 74dd793 commit 37b585a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-to-wp-org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,28 @@ jobs:
- name: npm install and build
run: |
npm ci
npm install -g @wordpress/env
npm run build
env:
CI: true

# Run Cypress against the main release only
- name: Start server
run: wp-env start
- name: Cypress run
uses: cypress-io/github-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-videos
path: cypress/videos
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
Expand Down

0 comments on commit 37b585a

Please sign in to comment.