Skip to content

Commit

Permalink
Pipelines Polishing
Browse files Browse the repository at this point in the history
Some more improvements to the common pipelines.

Signed-off-by: Ben Hale <[email protected]>
  • Loading branch information
nebhale committed Oct 6, 2020
1 parent 5d6aee7 commit cfff823
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 35 deletions.
File renamed without changes.
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
25 changes: 19 additions & 6 deletions .github/workflows/test.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
name: Tests
"on":
pull_request: {}
push:
branches:
- main
jobs:
unit:
name: Unit Test
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.15"
- 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-
- uses: actions/setup-go@v2
with:
go-version: "1.15"
- 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 }}
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ require (
github.com/BurntSushi/toml v0.3.1
github.com/onsi/gomega v1.10.2
github.com/sclevine/spec v1.4.0
github.com/stretchr/objx v0.3.0 // indirect
github.com/stretchr/testify v1.6.1
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
)

0 comments on commit cfff823

Please sign in to comment.