ghaction-upx/.github/workflows/uncommited.yml

38 lines
858 B
YAML
Raw Normal View History

2020-01-08 14:26:34 -07:00
name: uncommited
on:
pull_request:
push:
jobs:
changes:
runs-on: ubuntu-latest
steps:
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v1
-
# https://github.com/actions/setup-node
name: Set up Node
uses: actions/setup-node@v1
-
name: Build
run: |
npm install
npm run format
npm run build
-
name: Prune prod
run: |
2020-04-07 16:26:27 -06:00
npm run build-dep
npm run prune
2020-01-08 14:26:34 -07:00
-
name: Check for uncommitted changes
run: |
if [[ `git status --porcelain` ]]; then
git status --porcelain
echo "##[error] found changed files after build. please 'npm run build && npm run format && npm prune --production'"
exit 1
fi