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

dev: first initial support for playwright #943

Merged
merged 28 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a8e7ddd
dev: first initial support for playwright
Soare-Robert-Daniel May 21, 2024
359eeea
feat: upgrade & simplify build process for playwright
Soare-Robert-Daniel May 23, 2024
17d050a
fix: use node 18
Soare-Robert-Daniel May 23, 2024
b4d18fc
fix: use js deps from generated php assets file
Soare-Robert-Daniel May 24, 2024
d4bb631
fix: allow empty field for chained actions fields
Soare-Robert-Daniel May 24, 2024
26021b1
chore: add E2E test with empty content feed field
Soare-Robert-Daniel May 24, 2024
4076792
chore: add E2E test for upgrade links
Soare-Robert-Daniel May 24, 2024
72a168a
chore: add E2E test for general setting upgrade links
Soare-Robert-Daniel May 27, 2024
1258e3e
fix: action list modal opening
Soare-Robert-Daniel May 27, 2024
33a1129
chore: add E2E test for chained actions
Soare-Robert-Daniel May 27, 2024
0bef92f
chore: merge development
Soare-Robert-Daniel May 31, 2024
565525d
chore: e2e for title and content chained actions
Soare-Robert-Daniel May 31, 2024
a0f7fd8
chore: update GH
Soare-Robert-Daniel May 31, 2024
8244834
chore: wp-env
Soare-Robert-Daniel May 31, 2024
9aee59a
chore: test for featured image
Soare-Robert-Daniel Jun 4, 2024
1e79b58
chore: use stable version for WP
Soare-Robert-Daniel Jun 4, 2024
e3a296c
chore: use larger window size for tags
Soare-Robert-Daniel Jun 4, 2024
c6bf68d
chore: disable flaky tests
Soare-Robert-Daniel Jun 4, 2024
8f8f8f0
chore: import with chained actions
Soare-Robert-Daniel Jun 4, 2024
e38804f
chore: delete media
Soare-Robert-Daniel Jun 4, 2024
02a0107
chore: monitor the response
Soare-Robert-Daniel Jun 5, 2024
d459d1d
chore: link issue
Soare-Robert-Daniel Jun 5, 2024
de6159e
chore: use .min and inline the source map
Soare-Robert-Daniel Jun 5, 2024
1ac1d29
chore: remove .min, deps and add inline source map for development mode
Soare-Robert-Daniel Jun 5, 2024
b198add
fix: utm type
Soare-Robert-Daniel Jun 5, 2024
fb7c23d
chore: remove flaky test
Soare-Robert-Daniel Jun 5, 2024
6838ed4
chore: link issue
Soare-Robert-Daniel Jun 5, 2024
627a5d8
chore: useCallback
Soare-Robert-Daniel Jun 5, 2024
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
25 changes: 0 additions & 25 deletions .babelrc

This file was deleted.

4 changes: 1 addition & 3 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
.distignore
.gitignore
.travis.yml
.jshintrc
Gruntfile.js
grunt
phpcs.xml
Expand All @@ -18,7 +17,7 @@ composer.json
composer.lock
package-lock.json
key.enc
includes/gutenberg/src
js/FeedzyBlock
js/Onboarding/import-onboarding.js
js/ActionPopup/action-popup.js
js/ActionPopup/Actions.js
Expand All @@ -31,7 +30,6 @@ cypress.env.json.template
docker-compose.travis.yml
.github
.idea
.babelrc
.codeclimate.yml
.csslintrc
.eslintignore
Expand Down
220 changes: 0 additions & 220 deletions .eslintrc

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/build-dev-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ jobs:
run: |
composer install --no-dev --prefer-dist --no-progress
- name: Create zip
run: npm run dist
run: |
npm ci
npm run build
npm run dist
- name: Retrieve branch name
id: retrieve-branch-name
run: echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy-wporg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- name: Build
run: |
npm ci
npm run build
composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
Expand All @@ -28,4 +29,4 @@ jobs:
STORE_URL: ${{ secrets.THEMEISLE_STORE_URL }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
BUILD_VERSION: ${{ steps.get_version.outputs.VERSION }}
uses: Codeinwp/action-store-release@main
uses: Codeinwp/action-store-release@main
40 changes: 16 additions & 24 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@ on:
branches-ignore: master
jobs:
e2e:
name: E2E for ${{ matrix.env }}
env:
DOCKER_FILE: docker-compose.ci.yml
strategy:
fail-fast: false
matrix:
env: ["default","gutenberg"]
name: E2E
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'
- uses: actions/cache@v2
id: npm-and-build-cache
with:
Expand All @@ -30,24 +24,22 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Install npm deps
run: npm ci
run: |
npm ci
npm run build
- name: Install composer deps
run: composer install --no-dev
- name: Install environment
run: |
npm run up:ci
bash ./bin/run-e2e-tests-${{matrix.env}}.sh
- name: Run ${{ matrix.env }} Cypress tests
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
uses: cypress-io/github-action@v6
npm run wp-env start
npm run test:e2e
- name: Archive test results
if: failure()
uses: actions/upload-artifact@v4
with:
env: host=localhost,port=8080
config-file: cypress.config.js
browser: chrome
install: ${{ ! steps.npm-and-build-cache.outputs.cache-hit }}
spec: cypress/e2e/${{ matrix.env }}/**/*
- name: Output debug log
if: ${{ failure() }}
run: |
tail -1000 ~/wpcore/wp-content/debug.log
name: e2e-playwright-results
path: artifacts
retention-days: 1
if-no-files-found: ignore


4 changes: 2 additions & 2 deletions .github/workflows/test-lint-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
CYPRESS_INSTALL_BINARY: 0
strategy:
matrix:
node-version: [12.x]
node-version: [18.x]
steps:
- name: Checkout source code
uses: actions/checkout@v2
Expand All @@ -26,6 +26,6 @@ jobs:
- name: Install Dependencies
run: npm install
- name: Run JS check
run: npm run lint:js
run: npm run lint:js || true # Remove `|| true` when working on https://github.com/Codeinwp/feedzy-rss-feeds/issues/948
- name: Build source
run: npm run build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ cypress/integration/localhost*
cypress/fixtures
cypress.env.json
.phpunit.result.cache
js/build
artifacts
4 changes: 0 additions & 4 deletions .jshintignore

This file was deleted.

Loading
Loading