Skip to content

Commit

Permalink
Merge pull request autonomys#15 from subspace/add-github-actions
Browse files Browse the repository at this point in the history
Run typescript checks on any pull_request
  • Loading branch information
1devNdogs authored Jan 11, 2022
2 parents d8d64d2 + d7fb699 commit ed3565d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/typescript.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: TypeScript

on: [push, pull_request]

jobs:
ts-lint-and-build:
runs-on: ubuntu-20.04
name: Run eslint, check typescript and run tests
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "16"
- run: npm ci
- run: npm test
- run: npm run lint
- run: npm run build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
build
dist
node_modules
.nyc_output
coverage
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prepublishOnly": "npm run build",
"build": "rm -rf dist && tsc",
"lint": "eslint . --ext .ts",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"no test specified yet\" && exit 0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit ed3565d

Please sign in to comment.