Skip to content

Commit

Permalink
Setup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rodion-arr committed Dec 17, 2020
1 parent 146d1ae commit af63068
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Node.js CI

on:
schedule:
- cron: '23 4 * * *' # Once, nightly
push:
branches:
- main
pull_request:

jobs:

test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 15, 14, 12, 10 ]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run tests-only

lint:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 14 ]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"create-package": "bin/create-package"
},
"scripts": {
"test": "standard && mocha --timeout=60000",
"lint": "standard",
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "mocha --timeout=60000",
"test:debug": "mocha --inspect --inspect-brk --timeout=0",
"release": "npm t && standard-version && npm publish",
"postpublish": "git push origin && git push origin --tags"
Expand Down

0 comments on commit af63068

Please sign in to comment.