forked from dylan-sutton-chavez/edge-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
45 lines (38 loc) · 1.18 KB
/
action.yml
File metadata and controls
45 lines (38 loc) · 1.18 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
name: Runtime
description: Deno/JS runtime. lint = deno lint; test = Deno + Playwright suite.
inputs:
mode:
description: "lint | test"
required: true
runs:
using: composite
steps:
- 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
if: inputs.mode == 'lint'
shell: bash
run: deno lint runtime/
# ~150MB Chromium; cached so only the first run pays the download.
- name: Cache Playwright browsers
if: inputs.mode == 'test'
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-chromium
# --with-deps installs the OS libs Chromium needs on Linux.
- name: Install Chromium
if: inputs.mode == 'test'
shell: bash
run: deno run -A npm:playwright install --with-deps chromium
- name: Test
if: inputs.mode == 'test'
shell: bash
run: deno test --allow-all runtime/tests/runtime.test.js