ci: add woodpecker config
This commit is contained in:
parent
5a13e918a7
commit
2fdc68654f
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@
|
||||
!buf.lock
|
||||
!buf.yaml
|
||||
|
||||
!.woodpecker/*
|
||||
!legal/*
|
||||
!scripts/**/*
|
||||
!swagger/*
|
||||
|
12
.woodpecker/.generate.yaml
Normal file
12
.woodpecker/.generate.yaml
Normal file
@ -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
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 (
|
||||
|
Loading…
Reference in New Issue
Block a user