-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (39 loc) · 877 Bytes
/
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
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- "**"
jobs:
build:
name: ${{ matrix.kind }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@master
- uses: denoland/setup-deno@main
with:
deno-version: "1.39.2"
- uses: browser-actions/setup-chrome@latest
- name: Run linter
if: matrix.os == 'ubuntu-latest'
run: |
deno fmt --check
deno lint
- name: Check rpc.client.ts
if: matrix.os == 'ubuntu-latest'
run: |
deno task gen_rpc_client
git diff --exit-code
- name: Check mod.ts
run: |
deno check mod.ts
- name: Show chrome version
run: chrome --version
- name: Run tests
run: |
deno task test