-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improvements GoVPP CLI Changes: - improve output format for diff command - add new linter check to detect unused messages - add format option to lint command - general code cleanup - improved log messages Signed-off-by: Ondrej Fabry <[email protected]> * Update Signed-off-by: Ondrej Fabry <[email protected]> --------- Signed-off-by: Ondrej Fabry <[email protected]>
- Loading branch information
1 parent
fb23b14
commit bc51fdc
Showing
21 changed files
with
945 additions
and
523 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 |
---|---|---|
|
@@ -27,18 +27,18 @@ jobs: | |
config_file: '.github/ci/yamllint.yml' | ||
|
||
go-mod: | ||
name: "Check go.mod" | ||
strategy: | ||
matrix: | ||
go: [ '1.20' ] | ||
name: "Check go.mod" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
- name: "Setup Go" | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
- name: "Run go mod tidy" | ||
run: go mod tidy -v | ||
- name: "Check go.mod" | ||
|
@@ -49,34 +49,36 @@ jobs: | |
git diff --exit-code go.sum | ||
binapi: | ||
name: "Check generated binapi" | ||
strategy: | ||
matrix: | ||
go: [ '1.20' ] | ||
env: | ||
VERSION: v0.8.0 | ||
name: "Check generated binapi" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
- name: "Setup Go" | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
- name: "Generate binapi" | ||
run: make gen-binapi-docker | ||
- name: "Check binapi" | ||
run: | | ||
git diff --exit-code binapi | ||
build-test: | ||
name: "Build and test" | ||
strategy: | ||
matrix: | ||
go: [ '1.20' ] | ||
os: [ ubuntu-latest ] | ||
name: "Build and test" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
- name: "Setup Go" | ||
uses: actions/setup-go@v4 | ||
with: | ||
|
@@ -85,8 +87,6 @@ jobs: | |
uses: autero1/[email protected] | ||
with: | ||
gotestsum_version: 1.9.0 | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
- name: "Go Build" | ||
run: go build -v ./... | ||
- name: "Go Test" | ||
|
@@ -98,21 +98,21 @@ jobs: | |
test-results: test.json | ||
|
||
golangci: | ||
name: "GolangCI" | ||
strategy: | ||
matrix: | ||
go: [ '1.20' ] | ||
name: "GolangCI" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
- name: "Setup Go" | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
- name: "Run golangci" | ||
uses: golangci/golangci-lint-action@v3 # docs: https://github.com/golangci/golangci-lint-action | ||
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
Oops, something went wrong.