Add ci and pre-checkin workflow

This commit is contained in:
CrazyMax committed 2020-08-15 14:50:47 +02:00
1 parent 64f9c325fc
commit fda7d266a6
2 files changed
+58

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
name: pre-checkin
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
pre-checkin:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2.3.1
-
name: Install
run: yarn install
-
name: Pre-checkin
run: yarn run pre-checkin
-
name: Check for uncommitted changes
run: |
if [[ `git status --porcelain` ]]; then
git status --porcelain
echo "::warning::Found changes. Please run 'yarn run pre-checkin' and push"
fi