1

ci: add woodpecker config
All checks were successful
ci/woodpecker/manual/lint Pipeline was successful
ci/woodpecker/manual/generate Pipeline was successful

This commit is contained in:
Mya 2023-12-30 19:13:31 -06:00
parent 5a13e918a7
commit 2fdc68654f
Signed by: mya
GPG Key ID: 4DFBA0F91AC3544A
5 changed files with 27 additions and 1 deletions

1
.gitignore vendored

@ -8,6 +8,7 @@
!buf.lock
!buf.yaml
!.woodpecker/*
!legal/*
!scripts/**/*
!swagger/*

@ -0,0 +1,12 @@
steps:
generate:
image: golang:1.20
environment:
GO111MODULE: on
GOBIN: /usr/local/bin
commands:
- go install github.com/bufbuild/buf/cmd/buf@latest
- make generate
- git status -s
depends_on: [ lint ]

10
.woodpecker/.lint.yaml Normal file

@ -0,0 +1,10 @@
steps:
lint:
image: golang:1.20
environment:
GO111MODULE: on
GOBIN: /usr/local/bin
commands:
- go install github.com/google/addlicense@latest
- go install github.com/bufbuild/buf/cmd/buf@latest
- make lint

@ -1,4 +1,4 @@
module code.pitz.tech/licensing/proto
module code.pitz.tech/licensing/proto/scripts
go 1.20

@ -1,3 +1,6 @@
// Copyright (C) 2023 The Licensing Authors
// SPDX-License-Identifier: MIT
package main
import (