-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #781 from strukturag/keep-generated-files
Keep generated files in the repository.
- Loading branch information
Showing
24 changed files
with
13,143 additions
and
38 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,48 @@ | ||
name: generated | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- '.github/workflows/generated.yml' | ||
- 'api*.go' | ||
- '*_easyjson.go' | ||
- '*.pb.go' | ||
- '*.proto' | ||
- 'go.*' | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- '.github/workflows/generated.yml' | ||
- 'api*.go' | ||
- '*_easyjson.go' | ||
- '*.pb.go' | ||
- '*.proto' | ||
- 'go.*' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check-generated: | ||
name: check-generated | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "stable" | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt -y update && sudo apt -y install protobuf-compiler | ||
- name: Generate files | ||
run: | | ||
make common | ||
- name: Check generated files | ||
run: | | ||
git add *.go | ||
git diff --cached --exit-code *.go |
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 |
---|---|---|
|
@@ -30,11 +30,6 @@ jobs: | |
with: | ||
go-version: "1.21" | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt -y update && sudo apt -y install protobuf-compiler | ||
make common | ||
- name: lint | ||
uses: golangci/[email protected] | ||
with: | ||
|
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
bin/ | ||
vendor/ | ||
|
||
*_easyjson.go | ||
*.pem | ||
*.pb.go | ||
*.prof | ||
*.socket | ||
*.tar.gz | ||
|
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
Oops, something went wrong.