Skip to content

build(lint): use strict eslint rules [EDS-310] #87

build(lint): use strict eslint rules [EDS-310]

build(lint): use strict eslint rules [EDS-310] #87

Workflow file for this run

name: Test Actions
on: [pull_request, workflow_dispatch]
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
setup-wp-and-elementor-env:
name: Setup WP and Elementor env
runs-on: ubuntu-latest
if: startsWith( github.repository, 'elementor/' )
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup WP Env
uses: ./actions/setup-wp-env
with:
php: '8.0'
wp: '6.6'
active-theme: 'hello-elementor'
themes: |-
https://downloads.wordpress.org/theme/hello-elementor.zip
plugins: |-
https://downloads.wordpress.org/plugin/elementor.zip
mappings: |-
elementor-templates:./stubs/elementor-templates
config: |-
ELEMENTOR_SHOW_HIDDEN_EXPERIMENTS:1
- name: Setup Elementor Env
uses: ./actions/setup-elementor-env
with:
env: 'development'
experiments: |-
pages_panel:true
editor_v2:false
e_nested_atomic_repeaters:false
templates: |-
elementor-templates
- name: Ping to check if the site is up and import successful
uses: actions/github-script@v7
env:
URL_TO_CHECK: 'http://localhost:8888/react-query-under-the-hood/'
with:
script: |
const { URL_TO_CHECK } = process.env;
const response = await fetch(URL_TO_CHECK)
if (!response.ok) {
core.setFailed(`Failed to ping ${URL_TO_CHECK}, status: ${response.status}.`);
}