-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
CrazyMax
committed
Aug 15, 2020
1 parent
64f9c32
commit fda7d26
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |