-
-
Notifications
You must be signed in to change notification settings - Fork 45
57 lines (43 loc) · 1.25 KB
/
ci.yml
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
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: test-${{ matrix.os }}-${{ matrix.deno }}
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS
strategy:
matrix:
deno: ["v1.x", "canary"]
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: ${{ matrix.deno }}
- name: Formatting
if: contains(runner.os, 'ubuntu')
run: deno fmt --check
- name: Cache Dependencies
run: deno cache --unstable mod.ts
- name: Install Chromium
run: deno run -A --unstable install.ts
- name: Run tests
run: deno test -A --unstable tests.ts
- name: Run tests with lib.dom typings
run: deno test -A --unstable --config fixtures/dom-tsconfig.json tests.ts
docker:
name: docker
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Build image
run: docker build -t denopuppeteer .
- name: Run container
run: docker run -i denopuppeteer