-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: run collab tests in CI on windows
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 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 |
---|---|---|
|
@@ -178,3 +178,50 @@ jobs: | |
name: Test Results | ||
path: ./demos/playground/playwright-report | ||
retention-days: 7 | ||
|
||
e2e-collab-windows: | ||
runs-on: windows-latest | ||
strategy: | ||
#fail-fast: false | ||
matrix: | ||
node-version: [18.11] | ||
browser: ['chromium', 'firefox'] | ||
env: | ||
CI: true | ||
steps: | ||
- 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 | ||
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- | ||
- run: pnpm i | ||
working-directory: ./demos/playground | ||
- name: Download browsers | ||
run: pnpm playwright install | ||
working-directory: ./demos/playground | ||
- run: pnpm test-e2e-collab-ci-${{ matrix.browser }} | ||
working-directory: ./demos/playground | ||
- name: Upload Artifacts | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Test Results | ||
path: ./demos/playground/playwright-report | ||
retention-days: 7 |