Skip to content

Commit

Permalink
Add new action
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jan 15, 2025
1 parent 22b941e commit 1f5e3ee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
File renamed without changes.
16 changes: 12 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: E2E test

env:
NODE_VERSION: "18"
NODE_VERSION: "20"

on:
push:
Expand All @@ -20,25 +20,33 @@ jobs:
matrix:
core:
- {name: 'WP latest', version: 'latest'}

steps:
- name: Install node
uses: actions/setup-node@v3
- name: "Install node v${{ env.NODE_VERSION }}"
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

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

- name: Install dependencies
run: npm ci

- name: Composer (optional)
run: composer install
continue-on-error: true

- name: Build (optional)
run: npm run build
continue-on-error: true

- name: Set the core version
run: ./tests/bin/set-core-version.js ${{ matrix.core.version }}

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

- name: Test
run: npm run cypress:run
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

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

- name: PHP version
uses: shivammathur/setup-php@v2
Expand Down

0 comments on commit 1f5e3ee

Please sign in to comment.