-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (39 loc) · 1.16 KB
/
ts_serialize_tests.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
# Copyright 2018-2021 Gamebridge.ai authors. All rights reserved. MIT license.
# This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS.
# For more information see: https://github.com/denolib/setup-deno
name: tests
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
deno: ["v1.x"]
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Setup deno
uses: denolib/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}
- name: Deno lint
run: deno lint
- name: Deno format check
run: deno fmt --check
if: matrix.os != 'windows-latest'
- name: Cache dependencies
run: deno cache test_deps.ts
- name: Deno test
run: deno test --doc
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Build and test NPM module
run: ./_build_npm.ts