-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (46 loc) · 1.54 KB
/
_runtime_check.yml
File metadata and controls
59 lines (46 loc) · 1.54 KB
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
name: _Runtime Check
on:
workflow_call:
jobs:
lint:
name: Deno Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Cache Deno modules
uses: actions/cache@v5
with:
path: ~/.cache/deno
key: deno-${{ runner.os }}-${{ hashFiles('**/deno.json', '**/deno.lock') }}
restore-keys: deno-${{ runner.os }}-
- name: Lint runtime/
run: deno lint runtime/
test:
name: Deno Test (Playwright + CDN wasm)
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Cache Deno modules
uses: actions/cache@v5
with:
path: ~/.cache/deno
key: deno-${{ runner.os }}-${{ hashFiles('**/deno.json', '**/deno.lock') }}
restore-keys: deno-${{ runner.os }}-
# ~150MB Chromium binary; cached across runs so only the first run pays the download.
- name: Cache Playwright browsers
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-chromium
# --with-deps installs OS-level libs (libnss, libatk, ...) required by Chromium on Linux runners.
- name: Install Chromium
run: deno run -A npm:playwright install --with-deps chromium
- name: Test runtime/tests/
run: deno test --allow-all runtime/tests/runtime.test.js