Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General cleanup #8

Merged
merged 1 commit into from
Oct 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node: [ 12, 14, 16 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
# - name: Lint TypeScript
# run: npm run lint
- name: Run test cases
run: npm test
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

33 changes: 7 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@
"@types/mocha": "^9.0.0",
"@types/node": "^12.12.6",
"chai": "^4.3.4",
"link-self": "^0.2.0",
"mocha": "^9.1.1",
"shx": "^0.3.3",
"typescript": "^4.4.2"
"typescript": "4.5.0-beta"
},
"scripts": {
"prepare": "link-self",
"build": "tsc -b src && shx cp ./package.cjs.json ./dist/cjs/package.json",
"pretest": "npm run build",
"test": "tsc -b test && mocha",
Expand Down
3 changes: 1 addition & 2 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"compilerOptions": {
"composite": false,
"declaration": false,
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true,
"module": "Node12",
"outDir": "",
"types": ["node", "mocha", "chai"]
},
Expand Down
3 changes: 1 addition & 2 deletions test/unknown.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {hasProperty} from "unknown";
import chai from "chai";
const expect = chai.expect;
import {expect} from "chai";

type KnownObject = { known: "known" };

Expand Down