.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user