Skip to content

Commit 63a6b33

Browse files
committed
Start adding CI config
1 parent 6d1f19c commit 63a6b33

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/labels.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,6 @@
9393
- name: "action/race"
9494
color: "dddddd"
9595
description: Enable the Go race detector in subsequent test runs of this pull request.
96+
- name: "action/test-acceptance"
97+
color: "dddddd"
98+
description: Run the acceptance test suite in subsequent test runs of this pull request.

.github/workflows/ci-core.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,21 @@ jobs:
111111
run: |
112112
go generate ./...
113113
git diff --exit-code
114+
115+
test-acceptance:
116+
runs-on: ubuntu-latest
117+
if: ${{ github.ref_name == 'main' || contains(github.event.pull_request.labels.*.name, 'action/test-acceptance') }}
118+
steps:
119+
- uses: actions/checkout@v3
120+
- uses: actions/setup-go@v3
121+
with:
122+
go-version: "1.19"
123+
cache: true
124+
- uses: goreleaser/goreleaser-action@v3
125+
with:
126+
distribution: goreleaser
127+
version: latest
128+
args: release --rm-dist --snapshot --skip-publish
129+
env:
130+
RELEASE_NAME: 0.0.0
131+

0 commit comments

Comments
 (0)