Skip to content

Commit

Permalink
Merge pull request #8 from paketo-buildpacks/pipeline-polishing
Browse files Browse the repository at this point in the history
Pipelines Polishing

Signed-off-by: Ben Hale <bhale@vmware.com>
  • Loading branch information
nebhale authored Sep 26, 2020
2 parents d504986 + 0df1c82 commit 6454416
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 30 deletions.
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ updates:
schedule:
interval: daily
labels:
- 'semver: patch'
- 'type: dependency-upgrade'
- semver:patch
- type:dependency-upgrade
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
labels:
- 'semver: patch'
- 'type: dependency-upgrade'
- semver:patch
- type:dependency-upgrade
18 changes: 9 additions & 9 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
- name: 'semver: major'
- name: semver:major
description: A change requiring a major version bump
color: f9d0c4
- name: 'semver: minor'
- name: semver:minor
description: A change requiring a minor version bump
color: f9d0c4
- name: 'semver: patch'
- name: semver:patch
description: A change requiring a patch version bump
color: f9d0c4
- name: 'type: bug'
- name: type:bug
description: A general bug
color: e3d9fc
- name: 'type: dependency-upgrade'
- name: type:dependency-upgrade
description: A dependency upgrade
color: e3d9fc
- name: 'type: documentation'
- name: type:documentation
description: A documentation update
color: e3d9fc
- name: 'type: enhancement'
- name: type:enhancement
description: A general enhancement
color: e3d9fc
- name: 'type: question'
- name: type:question
description: A user question
color: e3d9fc
- name: 'type: task'
- name: type:task
description: A general task
color: e3d9fc
20 changes: 10 additions & 10 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
template: $CHANGES
name-template: v$RESOLVED_VERSION
name-template: $RESOLVED_VERSION
tag-template: v$RESOLVED_VERSION
categories:
- title: ⭐️ Enhancements
labels:
- 'type: enhancement'
- type:enhancement
- title: "\U0001F41E Bug Fixes"
labels:
- 'type: bug'
- type:bug
- title: "\U0001F4D4 Documentation"
labels:
- 'type: documentation'
- type:documentation
- title: ⛏ Dependency Upgrades
labels:
- 'type: dependency-upgrade'
- type:dependency-upgrade
- title: "\U0001F6A7 Tasks"
labels:
- 'type: task'
- type:task
exclude-labels:
- 'type: question'
- type:question
version-resolver:
major:
labels:
- 'semver: major'
- semver:major
minor:
labels:
- 'semver: minor'
- semver:minor
patch:
labels:
- 'semver: patch'
- semver:patch
default: patch
12 changes: 9 additions & 3 deletions .github/workflows/minimal-labels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Minimal Labels
"on":
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
jobs:
semver:
name: Minimal Semver Labels
Expand All @@ -10,7 +16,7 @@ jobs:
- uses: mheap/github-action-required-labels@v1
with:
count: 1
labels: 'semver: major,semver: minor,semver: patch'
labels: semver:major, semver:minor, semver:patch
mode: exactly
type:
name: Minimal Type Labels
Expand All @@ -20,5 +26,5 @@ jobs:
- uses: mheap/github-action-required-labels@v1
with:
count: 1
labels: 'type: bug,type: dependency-upgrade,type: documentation,type: enhancement,type: question,type: task'
labels: type:bug, type:dependency-upgrade, type:documentation, type:enhancement, type:question, type:task
mode: exactly
19 changes: 16 additions & 3 deletions .github/workflows/test.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Tests
"on":
pull_request: {}
push:
branches:
- main
jobs:
unit:
name: Unit Test
Expand All @@ -14,11 +17,21 @@ jobs:
- uses: actions/cache@v2
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
path: ~/go/pkg/mod
path: ${{ env.HOME }}/go/pkg/mod
restore-keys: ${{ runner.os }}-go-
- name: Install richgo
run: go get -u github.com/kyoh86/richgo
run: |
#!/usr/bin/env bash
set -euo pipefail
GO111MODULE=on go get -u -ldflags="-s -w" github.com/kyoh86/richgo
- name: Run Tests
run: richgo test ./...
run: |
#!/usr/bin/env bash
set -euo pipefail
richgo test ./...
env:
RICHGO_FORCE_COLOR: "1"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
- id: release-drafter
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6454416

Please sign in to comment.