-
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(ci): optional jobs must report success to merge PR (#993)
* build(ci): report status of optional jobs * chore: revert old approach * check-proto, check-mocks * chore: remove paths * build: replace on pull request paths with technote-space/get-diff-action@v6 * chore: setup go later * chore: trigger ci * chore: trigger tests * chore: remove fetch-depth to ensure CI will run correctly * chore: remove duplicate code * check generated mocks when something (incl mockery version) changes in check-generated.yml
- Loading branch information
Showing
6 changed files
with
42 additions
and
29 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
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,10 +9,6 @@ name: Golang Linter | |
|
||
on: | ||
pull_request: | ||
paths: | ||
- "**.go" | ||
- ".golangci.yml" | ||
- ".github/linters/*" | ||
push: | ||
branches: | ||
- master | ||
|
@@ -30,25 +26,32 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: "^1.23.2" | ||
|
||
- uses: technote-space/get-diff-action@v6 | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
.github/linters/* | ||
FILES: | | ||
go.mod | ||
go.sum | ||
.golangci.yml | ||
- uses: actions/[email protected] | ||
if: env.GIT_DIFF | ||
with: | ||
go-version: "^1.23.2" | ||
|
||
- name: Install dependencies | ||
if: env.GIT_DIFF | ||
run: sudo apt-get update && sudo apt-get install -y libpcap-dev | ||
|
||
- uses: ./.github/actions/bls | ||
if: env.GIT_DIFF | ||
name: Install BLS library | ||
if: "env.GIT_DIFF != ''" | ||
|
||
- uses: golangci/[email protected] | ||
if: env.GIT_DIFF | ||
with: | ||
# Required: the version of golangci-lint is required and | ||
# must be specified without patch version: we always use the | ||
|
@@ -57,4 +60,3 @@ jobs: | |
args: --timeout 10m | ||
github-token: ${{ secrets.github_token }} | ||
only-new-issues: true | ||
if: env.GIT_DIFF |
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,9 +2,6 @@ | |
name: Test | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.go" | ||
- "go.sum" | ||
push: | ||
branches: | ||
- master | ||
|
@@ -17,29 +14,35 @@ jobs: | |
matrix: | ||
part: ["00", "01", "02", "03", "04", "05"] | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: "1.23.2" | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: technote-space/get-diff-action@v6 | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
"!test/" | ||
FILES: | | ||
go.mod | ||
go.sum | ||
Makefile | ||
- uses: actions/[email protected] | ||
if: env.GIT_DIFF | ||
with: | ||
go-version: "1.23.2" | ||
|
||
- name: Install libpcap | ||
run: sudo apt-get install --yes libpcap-dev | ||
if: env.GIT_DIFF | ||
run: sudo apt-get update && sudo apt-get install --yes libpcap-dev | ||
|
||
- uses: ./.github/actions/bls | ||
name: Install BLS library | ||
if: "env.GIT_DIFF != ''" | ||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y libpcap-dev | ||
if: env.GIT_DIFF | ||
|
||
- name: Run Go Tests | ||
if: env.GIT_DIFF | ||
env: | ||
CGO_LDFLAGS: "-L/usr/local/lib -ldashbls -lrelic_s -lmimalloc-secure -lgmp" | ||
CGO_CXXFLAGS: "-I/usr/local/include" | ||
run: | | ||
make test-group-${{ matrix.part }} NUM_SPLIT=6 | ||
if: env.GIT_DIFF |
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