-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
playwright
for more comprehensive testing (#556)
- Loading branch information
Showing
14 changed files
with
813 additions
and
913 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* @jalal246 |
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 |
---|---|---|
|
@@ -281,18 +281,183 @@ jobs: | |
- name: Testing features for DnD with React APP - Chrome | ||
run: pnpm test-e2e-multi:chrome | ||
|
||
e2e-linux: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 12 | ||
if: github.event.pull_request.draft != true | ||
strategy: | ||
matrix: | ||
node-version: [16.8] | ||
browser: ["chromium", "firefox"] | ||
env: | ||
CI: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: ^7.0.0 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build packages | ||
run: "pnpm clean && pnpm -r emit && pnpm build --production --release --minify" | ||
|
||
- name: Build DnD React App | ||
run: pnpm -F dflex-dnd-playground build | ||
|
||
- name: Install Playwright | ||
run: pnpm dlx playwright install --with-deps | ||
|
||
- name: Test Playwright | ||
run: pnpm run test-e2e-core-ci:${{ matrix.browser }} | ||
|
||
e2e-windows: | ||
runs-on: windows-latest | ||
timeout-minutes: 12 | ||
if: github.event.pull_request.draft != true | ||
strategy: | ||
matrix: | ||
node-version: [16.8] | ||
browser: ["chromium", "firefox"] | ||
env: | ||
CI: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: ^7.0.0 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build packages | ||
run: "pnpm clean && pnpm -r emit && pnpm build --production --release --minify" | ||
|
||
- name: Build DnD React App | ||
run: pnpm -F dflex-dnd-playground build | ||
|
||
- name: Install Playwright | ||
run: pnpm dlx playwright install --with-deps | ||
|
||
- name: Test Playwright | ||
run: pnpm run test-e2e-core-ci:${{ matrix.browser }} | ||
|
||
e2e-mac: | ||
runs-on: macos-latest | ||
timeout-minutes: 12 | ||
if: github.event.pull_request.draft != true | ||
strategy: | ||
matrix: | ||
node-version: [16.8] | ||
browser: ["chromium", "firefox", "webkit"] | ||
env: | ||
CI: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: ^7.0.0 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build packages | ||
run: "pnpm clean && pnpm -r emit && pnpm build --production --release --minify" | ||
|
||
- name: Build DnD React App | ||
run: pnpm -F dflex-dnd-playground build | ||
|
||
- name: Install Playwright | ||
run: pnpm dlx playwright install --with-deps | ||
|
||
- name: Test Playwright | ||
run: pnpm run test-e2e-core-ci:${{ matrix.browser }} | ||
|
||
release: | ||
name: Publish to NPM | ||
if: ${{ github.ref_name == 'main' && github.repository_owner == 'dflex-js' }} | ||
runs-on: ubuntu-latest | ||
needs: [ | ||
needs: | ||
[ | ||
lint, | ||
unit-test, | ||
types, | ||
install-build, | ||
e2e-same-container-vertical, | ||
# e2e-same-container-horizontal, | ||
e2e-multi-containers, | ||
e2e-mac, | ||
e2e-windows, | ||
e2e-linux, | ||
] | ||
steps: | ||
- name: Check out repository | ||
|
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
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
Oops, something went wrong.