This commit is contained in:
OpportunityLiu
2020-03-31 19:21:41 +08:00
Unverified
parent 19f24a28c9
commit e0ba2e3e91
+18 -19
View File
@@ -1,28 +1,27 @@
name: checkin name: checkin
on: on:
- push - push
- pull_request - pull_request
jobs: jobs:
checkin: checkin:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: install - name: install
run: yarn install run: yarn install
- name: build - name: build
run: yarn build run: yarn build
- name: test - name: test
run: yarn test run: yarn test
- name: release - name: release
run: yarn release run: yarn release
- name: "check for uncommitted changes" - name: "check for uncommitted changes"
# Ensure no changes # Ensure no changes
run: | run: |
git add . && git diff --exit-code --stat \ git add . && git diff --exit-code --stat \
|| (echo "##[error] found changed files after build. please 'yarn build && npm run format'" \ || (echo "##[error] found changed files after build. please 'yarn build && npm run format'" \
"and check in all changes" \ "and check in all changes" \
&& exit 1) && exit 1)