Skip to content

Commit

Permalink
Add ci and pre-checkin workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyMax committed Aug 15, 2020
1 parent 64f9c32 commit fda7d26
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci

on:
push:
branches:
- master
- releases/v*

jobs:
main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
logout:
- true
- false
steps:
-
name: Checkout
uses: actions/checkout@v2.3.1
-
name: Login
uses: ./login/
with:
username: ${{ secrets.DOCKER_USERNAME_TEST }}
password: ${{ secrets.DOCKER_PASSWORD_TEST }}
logout: ${{ matrix.logout }}
30 changes: 30 additions & 0 deletions .github/workflows/pre-checkin.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fda7d26

Please sign in to comment.