-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c82107
commit 9e3da7f
Showing
3 changed files
with
86 additions
and
10 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 |
---|---|---|
|
@@ -4,8 +4,8 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
golang_lint: | ||
name: Golang Lint | ||
golang_lint_ops: | ||
name: Golang Lint Ops | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
|
@@ -20,12 +20,58 @@ jobs: | |
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v${{ steps.tool-versions.outputs.golangci-lint_version }} | ||
args: --enable=gofmt --tests=false --exclude-use-default --timeout=5m0s | ||
only-new-issues: true | ||
run: make lint-go-ops | ||
Check failure on line 23 in .github/workflows/golangci-lint.yml GitHub Actions / actionlint[actionlint] .github/workflows/golangci-lint.yml#L23
Raw output
|
||
- name: Store lint report artifact | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 | ||
with: | ||
name: golangci-lint-report | ||
path: ./golangci-lint-report.xml | ||
name: golangci-lint-ops-report | ||
path: ./ops/golangci-lint-ops-report.xml | ||
|
||
golang_lint_integration_tests: | ||
name: Golang Lint Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
- uses: smartcontractkit/[email protected] | ||
id: tool-versions | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: "go.mod" | ||
check-latest: true | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
run: make lint-go-integration-tests | ||
Check failure on line 47 in .github/workflows/golangci-lint.yml GitHub Actions / actionlint[actionlint] .github/workflows/golangci-lint.yml#L47
Raw output
|
||
- name: Store lint report artifact | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 | ||
with: | ||
name: golangci-lint-integration-tests-report | ||
path: ./integration-tests/golangci-lint-integration-tests-report.xml | ||
|
||
golang_lint_relay: | ||
name: Golang Lint Relay tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
- uses: smartcontractkit/[email protected] | ||
id: tool-versions | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: "go.mod" | ||
check-latest: true | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
run: make lint-go-relay | ||
Check failure on line 71 in .github/workflows/golangci-lint.yml GitHub Actions / actionlint[actionlint] .github/workflows/golangci-lint.yml#L71
Raw output
|
||
- name: Store lint report artifact | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 | ||
with: | ||
name: golangci-lint-relay-report | ||
path: ./pkg/golangci-lint-relay-report.xml |
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 |
---|---|---|
|
@@ -52,16 +52,34 @@ jobs: | |
with: | ||
fetch-depth: 0 # fetches all history for all tags and branches to provide more metadata for sonar reports | ||
|
||
- name: Download Golangci unit tests reports | ||
- name: Download Golangci ops reports | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: golangci-lint.yml | ||
workflow_conclusion: "" | ||
name_is_regexp: true | ||
name: golangci-lint-report | ||
name: golangci-lint-ops-report | ||
if_no_artifact_found: warn | ||
|
||
- name: Download Golangci Relayer report | ||
- name: Download Golangci integration tests reports | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: golangci-lint.yml | ||
workflow_conclusion: "" | ||
name_is_regexp: true | ||
name: golangci-lint-integration-tests-report | ||
if_no_artifact_found: warn | ||
|
||
- name: Download Golangci relay reports | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: golangci-lint.yml | ||
workflow_conclusion: "" | ||
name_is_regexp: true | ||
name: golangci-lint-relay-report | ||
if_no_artifact_found: warn | ||
|
||
- name: Download Relayer unit tests report | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: relay.yml | ||
|
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