Skip to content

Commit

Permalink
Set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Dec 17, 2020
1 parent d323a8b commit f42fe5d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI

on:
push:
branches:
- '**'

jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm ci
- run: npm run ci
- run: npm run build
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"scripts": {
"build": "webpack",
"ci": "npm test && npm run lint",
"start": "webpack-dev-server --config webpack.test.config.js",
"test": "mocha -r jsdom-global/register ./node_modules/babel-core/register.js test/index.js",
"test:watch": "nodemon --exec \"npm test\" --watch src --watch renderers --watch test",
Expand Down

0 comments on commit f42fe5d

Please sign in to comment.