Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasimir committed Aug 25, 2021
1 parent bf0b602 commit 4e0fbda
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 19 deletions.
1 change: 1 addition & 0 deletions .depcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignores: ["ts-node"]
33 changes: 33 additions & 0 deletions .github/workflows/check-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check and Test

on:
pull_request:
workflow_dispatch:

jobs:
check-and-test:
name: Check and Test
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js Environment
uses: actions/setup-node@v2
with:
node-version: ^14
cache: 'npm'

- name: Install npm@7
run: npm install -g npm@7

- name: Install Dependencies
run: npm ci

- name: Run Checks
run: npm run check

- name: Run Tests
run: npm run test
16 changes: 1 addition & 15 deletions package-lock.json

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

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "eslint . && npm run prettier -- --check .",
"reformat": "npm run prettier -- --write .",
"depcheck": "depcheck .",
"check": "npm run lint && npm run depcheck",
"check": "npm run depcheck && npm run lint && npm run depcheck",
"clean": "git clean --force -X --exclude node_modules",
"precompile": "npm run clean",
"compile": "npm run compile-ts",
Expand Down Expand Up @@ -38,11 +38,9 @@
"mocha": "^9.0.3",
"prettier": "^2.3.2",
"ts-node": "^10.2.1",
"typescript": "^4.3.5",
"typescript-eslint": "^0.0.1-alpha.0"
"typescript": "^4.3.5"
},
"dependencies": {
"debug": "^4.3.1",
"eslint-plugin-mocha": "^9.0.0",
"execa": "^5.1.1",
"hostile": "^1.3.3",
Expand Down

0 comments on commit 4e0fbda

Please sign in to comment.