Skip to content

Commit

Permalink
Merge pull request #15 from buildpacks/test
Browse files Browse the repository at this point in the history
Test

Signed-off-by: Ben Hale <bhale@vmware.com>
  • Loading branch information
nebhale authored Sep 23, 2020
2 parents cb11f48 + ff55295 commit 4025de8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/minimal-labels.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
name: Minimal Labels
"on":
pull_request:
types:
- labeled
- unlabeled
- opened
- synchronize
pull_request: {}
jobs:
semver:
name: SemVer
runs-on:
- ubuntu-latest
steps:
- name: Require Labels
uses: mheap/github-action-required-labels@v1.1.0
uses: mheap/github-action-required-labels@v1
with:
count: 1
labels: 'semver: major,semver: minor,semver: patch'
Expand All @@ -24,7 +19,7 @@ jobs:
- ubuntu-latest
steps:
- name: Require Labels
uses: mheap/github-action-required-labels@v1.1.0
uses: mheap/github-action-required-labels@v1
with:
count: 1
labels: 'type: bug,type: dependency-upgrade,type: documentation,type: enhancement,type: question,type: task'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/synchronize-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.2
uses: actions/checkout@v2
- name: Label Syncer
uses: micnncim/action-label-syncer@v1.1.0
uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test
"on":
pull_request: {}
jobs:
test:
name: Test
runs-on:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: "1.15"
- name: Cache
uses: actions/cache@v2
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
path: ~/go/pkg/mod
restore-keys: ${{ runner.os }}-go-
- name: Install richgo
run: go get -u github.com/kyoh86/richgo
- name: Test
run: RICHGO_FORCE_COLOR=1 richgo test ./...
2 changes: 1 addition & 1 deletion .github/workflows/update-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
- ubuntu-latest
steps:
- name: Release Drafter
uses: release-drafter/release-drafter@v5.11.0
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4025de8

Please sign in to comment.