-
-
Notifications
You must be signed in to change notification settings - Fork 42
36 lines (34 loc) · 1.16 KB
/
test-win.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Running all tests on win always hangs-up.
# This is possibly related to deadlocks due node --test subprocesses + Playwright supprocesses
# Keep this file with single test just to have at least something on win.
# Also you can create custom branch with particular test to check on win.
# See: https://github.com/actions/runner/issues/1326#issuecomment-1172283561
name: test-win
on:
push:
jobs:
test-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npm install @playwright/[email protected]
- run: npx playwright install --with-deps chromium
- name: run tests
env:
FORBID_ONLY: 1
run: |
node test/setup.mjs
node test/bdd-syntax/test.mjs
# this command gets all test files in powershell
# node --test $(Get-ChildItem -Path test -Recurse -Include test.mjs).FullName
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: test/**/test-results/
retention-days: 10
if-no-files-found: ignore