Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade the download-artifact from v3 to v4 #182

Merged
merged 4 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v3

- name: Download build zip
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: ${{ github.event.repository.name }}
Expand Down Expand Up @@ -67,3 +67,13 @@ jobs:
npx mochawesome-json-to-md -p ./tests/cypress/reports/mochawesome.json -o ./tests/cypress/reports/mochawesome.md
npx mochawesome-report-generator tests/cypress/reports/mochawesome.json -o tests/cypress/reports/
cat ./tests/cypress/reports/mochawesome.md >> $GITHUB_STEP_SUMMARY
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-artifact-publisher-media-kit
retention-days: 2
path: |
${{ github.workspace }}/tests/cypress/screenshots/
${{ github.workspace }}/tests/cypress/videos/
${{ github.workspace }}/tests/cypress/logs/
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"cypress:open": "cypress open --config-file tests/cypress/config.config.js",
"cypress:run": "cypress run --config-file tests/cypress/config.config.js",
"cypress:run": "cypress run --config-file tests/cypress/config.config.js --browser chrome",
"clean-dist": "rm -rf ./dist"
},
"engines": {
Expand All @@ -23,7 +23,7 @@
"10up-toolkit": "^4.0.0",
"stylelint": "^14.0.0",
"@10up/babel-preset-default": "^1.1.2",
"@10up/cypress-wp-utils": "^0.2.0",
"@10up/cypress-wp-utils": "^0.3.0",
"@10up/eslint-config": "^2.4.6",
"@babel/preset-react": "^7.17.12",
"@wordpress/env": "^5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/integration/pmk-block-patterns.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ describe('Check if Media Kit Block Pattern is available for use', () => {
cy.visitAdminPage('post-new.php');
cy.closeWelcomeGuide();
cy.get('#post-title-0, h1.editor-post-title__input').click( { force: true } ).type('Test Block Pattern');
cy.get('.edit-post-header-toolbar__inserter-toggle').click();
cy.get('.components-tab-panel__tabs button').contains( 'Patterns' ).click();
cy.get('.edit-post-header-toolbar__inserter-toggle, .editor-document-tools__inserter-toggle').click();
cy.get('.components-tab-panel__tabs button, .block-editor-inserter__tabs button').contains( 'Patterns' ).click();

// (add version) If dropdown is available. (After WP 5.?)
cy.get('body').then(($body) => {
Expand Down
Loading