Skip to content

Commit

Permalink
Add test workflow on push
Browse files Browse the repository at this point in the history
  • Loading branch information
d98762625 committed Nov 15, 2019
1 parent dbfac93 commit a256278
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/hi.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run lint and tests

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm run lint-test
- run: npm test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"start": "DEBUG=cyberchef-server:server node -r esm ./bin/www",
"test": "mocha -r esm",
"prod": "NODE_ENV=production node -r esm ./bin/www",
"lint": "./node_modules/.bin/eslint --fix ."
"lint": "./node_modules/.bin/eslint --fix .",
"lint-test": "./node_modules/.bin/eslint ."
},
"dependencies": {
"cookie-parser": "~1.4.4",
Expand Down

0 comments on commit a256278

Please sign in to comment.