forked from algorand/indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from AlgoNode/NDLY-2-sync-with-upstream
[WIP] NDLY-2: Sync with upstream
- Loading branch information
Showing
43 changed files
with
1,495 additions
and
1,058 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
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 |
---|---|---|
|
@@ -10,21 +10,21 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 # required for new-from-rev option in .golangci.yml | ||
- name: Install libraries | ||
run: sudo apt-get -y -q install libboost-math-dev | ||
- name: Install specific golang | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.20.5' | ||
go-version: '1.21.10' | ||
- name: reviewdog-golangci-lint | ||
uses: reviewdog/action-golangci-lint@v2.3.1 | ||
uses: reviewdog/action-golangci-lint@v2.6.1 | ||
with: | ||
golangci_lint_version: "v1.53.2" | ||
go_version_file: go.mod | ||
golangci_lint_version: "v1.58.0" | ||
golangci_lint_flags: "-c .golangci.yml --allow-parallel-runners" | ||
reporter: "github-pr-review" | ||
reporter: "github-pr-check" | ||
tool_name: "Lint Errors" | ||
level: "error" | ||
fail_on_error: true | ||
filter_mode: "nofilter" | ||
# Non-Blocking Warnings Section | ||
reviewdog-warnings: | ||
runs-on: ubuntu-latest | ||
|
@@ -33,50 +33,18 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 # required for new-from-rev option in .golangci.yml | ||
- name: Install libraries | ||
run: sudo apt-get -y -q install libboost-math-dev | ||
- name: Install specific golang | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.20.5' | ||
- name: Add bin to PATH | ||
run: | | ||
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | ||
echo "$RUNNER_WORKSPACE/$(basename $GITHUB_REPOSITORY)/bin" >> $GITHUB_PATH | ||
- name: Create folders for golangci-lint | ||
run: mkdir -p cicdtmp/golangci-lint | ||
- name: Check if custom golangci-lint is already built | ||
id: cache-golangci-lint | ||
uses: actions/[email protected] | ||
go-version: '1.21.10' | ||
- name: reviewdog-golangci-lint | ||
uses: reviewdog/[email protected] | ||
with: | ||
path: cicdtmp/golangci-lint/golangci-lint-cgo | ||
key: cicd-golangci-lint-cgo-v0.0.2 | ||
|
||
- name: Build custom golangci-lint with CGO_ENABLED | ||
if: steps.cache-golangci-lint.outputs.cache-hit != 'true' | ||
run: | | ||
cd cicdtmp/golangci-lint | ||
git clone https://github.com/golangci/golangci-lint.git . | ||
git checkout tags/v1.53.2 | ||
CGO_ENABLED=true go build -trimpath -o golangci-lint-cgo ./cmd/golangci-lint | ||
./golangci-lint-cgo --version | ||
cd ../../ | ||
- name: Install reviewdog | ||
run: | | ||
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/v0.14.1/install.sh | sh -s | ||
reviewdog --version | ||
- name: Run golangci-lint with reviewdog | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: > | ||
./cicdtmp/golangci-lint/golangci-lint-cgo run | ||
--out-format line-number | ||
-c .golangci-warnings.yml | ||
--allow-parallel-runners | ||
| reviewdog | ||
-f=golangci-lint | ||
-name="Lint Warnings" | ||
-reporter=github-check | ||
-filter-mode=added | ||
-fail-on-error=false | ||
-level=warning | ||
go_version_file: go.mod | ||
golangci_lint_version: "v1.58.0" | ||
golangci_lint_flags: "-c .golangci-warnings.yml --allow-parallel-runners" | ||
reporter: "github-pr-check" | ||
tool_name: "Lint Warnings" | ||
level: "warning" | ||
fail_on_error: false | ||
filter_mode: "added" |
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
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.