Skip to content

Commit

Permalink
add github actions for PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
antonk52 committed May 2, 2021
1 parent f21f5a6 commit 535b36e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/nodejs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [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 }}
- name: install dependencies
run: npm ci && npm run install-peers
- name: check types
run: npm run types
- name: unit tests
run: npm test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"preversion": "npm run clean && npm ci && npm run types",
"postversion": "npm run prep && npm publish dist && git push --follow-tags",
"prep": "rm -rf dist && copyfiles ./src/* package.json README.md -f -a ./dist/",
"install-peers": "npm i immer@8 --no-save",
"clean": "rm -rf node_modules",
"types": "tsc",
"test": "jest"
Expand Down

0 comments on commit 535b36e

Please sign in to comment.