Skip to content

Commit

Permalink
Merge pull request #234 from 10up/dependabot/npm_and_yarn/npm_and_yar…
Browse files Browse the repository at this point in the history
…n-b8526f1e11

Bump the npm_and_yarn group across 1 directory with 2 updates
  • Loading branch information
dkotter authored Nov 20, 2024
2 parents d5b1a52 + fe9457c commit 91bcfa6
Show file tree
Hide file tree
Showing 5 changed files with 1,267 additions and 1,475 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- develop

jobs:
build:
build:
uses: 10up/safe-svg/.github/workflows/build-release-zip.yml@develop
cypress:
needs: build
Expand All @@ -26,18 +26,21 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download build zip
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: ${{ github.event.repository.name }}

- name: Display structure of downloaded files
run: ls -R
working-directory: ${{ github.event.repository.name }}

- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -46,14 +49,19 @@ jobs:
~/.cache
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm install

- name: Composer
run: composer install
- name: Set the core version and plugins config

- name: Set the core version and plugins config
run: ./tests/bin/set-wp-config.js --core=${{ matrix.core.version }} --plugins=./${{ github.event.repository.name }},./tests/cypress/test-plugin

- name: Set up WP environment
run: npm run env:start

- name: Test
run: npm run cypress:run

Expand All @@ -65,6 +73,7 @@ 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: Make artifacts available
uses: actions/upload-artifact@v4
if: failure()
Expand Down
Loading

0 comments on commit 91bcfa6

Please sign in to comment.