add tests

This commit is contained in:
OpportunityLiu
2020-03-20 22:14:58 +08:00
Unverified
parent 7d75884a86
commit be19756845
15 changed files with 3508 additions and 41 deletions
+26
View File
@@ -0,0 +1,26 @@
name: checkin
on:
- push
- pull_request
jobs:
checkin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: build
run: yarn build
- name: test
run: yarn test
- name: release
run: yarn release
- name: "check for uncommitted changes"
# Ensure no changes
run: |
git add . && git diff --exit-code --stat \
|| (echo "##[error] found changed files after build. please 'yarn build && npm run format'" \
"and check in all changes" \
&& exit 1)
-1
View File
@@ -2,7 +2,6 @@ name: test
on:
- push
- pull_request
jobs:
build: