-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(github): fix broken github actions and regenerate some code (#615)
* build(proto): regenerate .proto files, only whitespace changes * build(github): check generated code on PRs to v0.x-dev * chore: regenerate mocks * chore(github): configure yamllint for github workflows code * build(github): cleanup conditions when to run jobs * build(github): rename linter.yml to markdown-linter.yml * build(github): use super-linter action instead of docker image * chore: fix linter issue * build(github): change *.md link checker action * doc: fix broken links in *.md files
- Loading branch information
Showing
40 changed files
with
712 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
extends: default | ||
|
||
rules: | ||
line-length: disable | ||
truthy: disable | ||
comments: {min-spaces-from-content: 1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- release/** | ||
- v0.*-dev | ||
|
||
- v[0-9]+.[0-9]+-dev | ||
jobs: | ||
build: | ||
name: Build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,13 @@ | |
name: Check generated code | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.go" | ||
- "**.proto" | ||
push: | ||
branches: | ||
- master | ||
- v[0-9]+.[0-9]+-dev | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -18,15 +23,15 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.19' | ||
go-version: "1.19" | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: "Check generated mocks" | ||
run: | | ||
set -euo pipefail | ||
readonly MOCKERY=2.12.3 # N.B. no leading "v" | ||
readonly MOCKERY=2.23.1 # N.B. no leading "v" | ||
curl -sL "https://github.com/vektra/mockery/releases/download/v${MOCKERY}/mockery_${MOCKERY}_Linux_x86_64.tar.gz" | tar -C /usr/local/bin -xzf - | ||
make mockery 2>/dev/null | ||
|
@@ -44,11 +49,11 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '1.19' | ||
go-version: "1.19" | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 # we need a .git directory to run git diff | ||
fetch-depth: 1 # we need a .git directory to run git diff | ||
|
||
- name: "Check protobuf generated code" | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,13 @@ name: Golang Linter | |
|
||
on: | ||
pull_request: | ||
paths: | ||
- "**.go" | ||
push: | ||
branches: | ||
- master | ||
- v[0-9]+.[0-9]+-dev | ||
|
||
jobs: | ||
golangci: | ||
name: golangci-lint | ||
|
@@ -26,7 +30,7 @@ jobs: | |
submodules: true | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: '^1.19' | ||
go-version: "^1.19" | ||
- uses: technote-space/get-diff-action@v6 | ||
with: | ||
PATTERNS: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,11 @@ name: Protobuf Lint | |
on: | ||
pull_request: | ||
paths: | ||
- 'proto/**' | ||
- "proto/**" | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'proto/**' | ||
- v[0-9]+.[0-9]+-dev | ||
|
||
jobs: | ||
lint: | ||
|
@@ -18,4 +17,4 @@ jobs: | |
- uses: bufbuild/[email protected] | ||
- uses: bufbuild/buf-lint-action@v1 | ||
with: | ||
input: 'proto' | ||
input: "proto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.