-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 778 Bytes
/
Copy pathci.yml
File metadata and controls
32 lines (29 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: ci
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Bootstrap godo
run: go install github.com/my-rv/godo/cmd/godo@v0.2.0
- name: CI gate (godo.yaml)
run: $(go env GOPATH)/bin/godo ci
# Catches a broken .goreleaser.yaml on every push, instead of at tag time
# when a bad config means a failed release.
release-config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: check