FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
browser-examples/.github/workflows/ci.yml at main · vitest-tests/browser-examples · GitHub
vitest-tests
browser-examples
Repository navigation
Code
Issues
2
(2)
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
browser-examples
/
.github
/
workflows
/
ci.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
70 lines (54 loc) · 1.71 KB
Breadcrumbs
browser-examples
/
.github
/
workflows
/
ci.yml
Copy path
File metadata and controls
70 lines (54 loc) · 1.71 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name
:
CI
on
:
push
:
branches
:
-
main
pull_request
:
branches
:
-
main
workflow_dispatch
:
concurrency
:
group
:
ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress
:
true
env
:
PLAYWRIGHT_BROWSERS_PATH
:
${{ github.workspace }}/.cache/ms-playwright
jobs
:
test
:
runs-on
:
${{ matrix.os }}
timeout-minutes
:
30
strategy
:
matrix
:
os
:
[ubuntu-latest]
node_version
:
[22]
include
:
-
os
:
macos-latest
node_version
:
22
-
os
:
windows-latest
node_version
:
22
fail-fast
:
false
steps
:
-
uses
:
actions/checkout@v7
-
name
:
Install pnpm
uses
:
pnpm/action-setup@v6
-
name
:
Set node version to ${{ matrix.node_version }}
uses
:
actions/setup-node@v7
with
:
node-version
:
${{ matrix.node_version }}
-
name
:
Install
run
:
pnpm i
-
name
:
Get Playwright version
id
:
playwright-version
shell
:
bash
run
:
echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
-
name
:
Cache Playwright browsers
uses
:
actions/cache@v6
with
:
path
:
${{ github.workspace }}/.cache/ms-playwright
key
:
playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
#
--with-deps only does anything on Linux (apt packages). On Windows it
#
installs the Media Foundation feature (~3min, only needed for media
#
playback), and on macOS it is a no-op.
-
name
:
Install Playwright Dependencies
run
:
pnpm exec playwright install chromium ${{ runner.os == 'Linux' && '--with-deps' || '' }}
-
name
:
Test
run
:
pnpm run test
Back
|
FazBrowse Home
|
New Git URL