Added handling for null class objects #1124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |