-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from wp-graphql/feat/implement-redux
feat: implement redux
- Loading branch information
Showing
21 changed files
with
25,318 additions
and
24,756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
name: E2E Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
e2e-tests: | ||
name: E2E tests on Node ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: ['18'] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build Assets | ||
run: npm run build | ||
|
||
- name: Install Playwright dependencies | ||
run: | | ||
npx playwright install chromium firefox webkit --with-deps | ||
- name: Start WordPress Environment | ||
run: npm run wp-env -- start | ||
|
||
- name: Run E2E tests | ||
run: npm run test:e2e | ||
|
||
- name: Stop WordPress Environment | ||
run: npm run wp-env -- stop | ||
e2e-tests: | ||
name: E2E tests on Node ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: ['18'] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build Assets | ||
run: npm run build | ||
|
||
- name: Install Playwright dependencies | ||
run: | | ||
npx playwright install chromium firefox webkit --with-deps | ||
- name: Start WordPress Environment | ||
run: npm run wp-env -- start | ||
|
||
- name: Run E2E tests | ||
run: npm run test:e2e | ||
|
||
- name: Stop WordPress Environment | ||
run: npm run wp-env -- stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
name: Release Plugin | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build-and-release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies using npm ci | ||
run: npm ci | ||
|
||
- name: Run Lint and Tests | ||
run: | | ||
npm run lint:js | ||
npm run test | ||
- name: Build Package | ||
run: npm run build | ||
|
||
- name: Zip Artifacts | ||
run: | | ||
mkdir -p wpgraphql-ide/ | ||
rsync -av --exclude-from='.distignore' --delete-excluded ./ wpgraphql-ide/ && zip -r wpgraphql-ide.zip wpgraphql-ide/ && rm -rf wpgraphql-ide/ | ||
ls -la | ||
- name: Upload release artifact | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: wpgraphql-ide.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
permissions: | ||
contents: write | ||
build-and-release: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies using npm ci | ||
run: npm ci | ||
|
||
- name: Run Lint and Tests | ||
run: | | ||
npm run lint:js | ||
npm run test | ||
- name: Build Package | ||
run: npm run build | ||
|
||
- name: Zip Artifacts | ||
run: | | ||
mkdir -p wpgraphql-ide/ | ||
rsync -av --exclude-from='.distignore' --delete-excluded ./ wpgraphql-ide/ && zip -r wpgraphql-ide.zip wpgraphql-ide/ && rm -rf wpgraphql-ide/ | ||
ls -la | ||
- name: Upload release artifact | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: wpgraphql-ide.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
permissions: | ||
contents: write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit tests on Node ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: ['18', '20'] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
unit-tests: | ||
name: Unit tests on Node ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: ['18', '20'] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run Unit tests | ||
run: npm run test:unit | ||
- name: Run Unit tests | ||
run: npm run test:unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
{ | ||
"core": "WordPress/WordPress", | ||
"plugins": [ | ||
".", | ||
"https://downloads.wordpress.org/plugin/wp-graphql.zip" | ||
], | ||
"themes": [], | ||
"port": 8888, | ||
"config": { | ||
"WP_DEBUG": true | ||
} | ||
} | ||
"core": "WordPress/WordPress", | ||
"plugins": [ ".", "https://downloads.wordpress.org/plugin/wp-graphql.zip" ], | ||
"themes": [], | ||
"port": 8888, | ||
"config": { | ||
"WP_DEBUG": true | ||
} | ||
} |
Oops, something went wrong.