Files
github-action-setup-xmake/.github/workflows/checkin.yml
T
Opportunity 4e7cd23a3b fix
2020-07-07 17:33:11 +08:00

29 lines
655 B
YAML

name: checkin
on:
- push
- pull_request
jobs:
checkin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install
run: yarn install
- 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 .
if git diff --cached --stat --exit-code; then
else
echo "##[error] Found changed files after build. Please 'yarn build && npm run format' and check in all changes."
exit 1
fi