Skip to content

Commit dabb056

Browse files
committed
chore: unified workflows
1 parent 604f412 commit dabb056

File tree

13 files changed

+11337
-143
lines changed

13 files changed

+11337
-143
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
; https://editorconfig.org/
2+
root = true
3+
4+
[*]
5+
insert_final_newline = true
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 2
10+
11+
[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
12+
indent_style = tab
13+
indent_size = 4
14+
15+
[*.md]
16+
indent_size = 4
17+
trim_trailing_whitespace = false
18+

.github/workflows/build.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- '*.md'
8+
- '*.puml'
9+
- '.github/workflows/release.yaml'
10+
pull_request:
11+
branches:
12+
- main
13+
jobs:
14+
build:
15+
uses: traefik-plugins/workflows/.github/workflows/build.yaml@main

.github/workflows/go-cross.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Release
2+
on:
3+
workflow_dispatch: {}
4+
jobs:
5+
release:
6+
uses: traefik-plugins/workflows/.github/workflows/release.yaml@main

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ linters:
5050
- lll
5151
- gomnd
5252
- forbidigo
53+
- nosnakecase
54+
- varnamelen
5355

5456
issues:
5557
exclude-use-default: false

.releaserc.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
branches:
2+
- main
3+
4+
tagFormat: "v${version}"
5+
6+
preset: "conventionalcommits"
7+
8+
plugins:
9+
- "@semantic-release/commit-analyzer"
10+
- "@semantic-release/release-notes-generator"
11+
-
12+
- "@semantic-release/git"
13+
- assets: []
14+
messsage: false
15+
-
16+
- "@semantic-release/github"
17+
- successComment: false
18+
failComment: false

Makefile

Lines changed: 0 additions & 21 deletions
This file was deleted.

commitlint.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'body-max-line-length': [2, 'always', [120]],
5+
'type-enum': [2, 'always', ['chore', 'feat', 'fix']],
6+
'not-breaking-change': [2, 'always', []],
7+
},
8+
plugins: [{
9+
rules: {
10+
'not-breaking-change': ({notes}) => [notes.every((n) => n.title != 'BREAKING CHANGE'), 'commit must not be a breaking change']
11+
}
12+
}]
13+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/traefik-plugins/traefikuseragent
22

3-
go 1.16
3+
go 1.19
44

55
require github.com/mssola/user_agent v0.5.3

0 commit comments

Comments
 (0)