-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into windows-evtx-replay
- Loading branch information
Showing
64 changed files
with
632 additions
and
493 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 |
---|---|---|
|
@@ -40,17 +40,17 @@ jobs: | |
run: | | ||
make build BUILD_RE2_WASM=1 | ||
- name: Generate codecov configuration | ||
run: | | ||
.github/generate-codecov-yml.sh >> .github/codecov.yml | ||
- name: Run tests | ||
run: | | ||
go install github.com/kyoh86/[email protected] | ||
go test -tags expr_debug -coverprofile coverage.out -covermode=atomic ./... > out.txt | ||
if(!$?) { cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter; Exit 1 } | ||
cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter | ||
- name: Ignore-list of generated files for codecov | ||
run: | | ||
.github/codecov-ignore-generated.sh >> .github/codecov.yml | ||
- name: Upload unit coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,10 +128,21 @@ jobs: | |
with: | ||
go-version: "1.22" | ||
|
||
- name: Run "make generate" and check for changes | ||
- name: Run "go generate" and check for changes | ||
run: | | ||
set -e | ||
make generate 2>/dev/null | ||
# ensure the version of 'protoc' matches the one that generated the files | ||
PROTOBUF_VERSION="21.12" | ||
# don't pollute the repo | ||
pushd $HOME | ||
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip | ||
unzip protoc-${PROTOBUF_VERSION}-linux-x86_64.zip -d $HOME/.protoc | ||
popd | ||
export PATH="$HOME/.protoc/bin:$PATH" | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
go generate ./... | ||
protoc --version | ||
if [[ $(git status --porcelain) ]]; then | ||
echo "Error: Uncommitted changes found after running 'make generate'. Please commit all generated code." | ||
git diff | ||
|
@@ -145,6 +156,10 @@ jobs: | |
aws --endpoint-url=http://127.0.0.1:4566 --region us-east-1 kinesis create-stream --stream-name stream-1-shard --shard-count 1 | ||
aws --endpoint-url=http://127.0.0.1:4566 --region us-east-1 kinesis create-stream --stream-name stream-2-shards --shard-count 2 | ||
- name: Generate codecov configuration | ||
run: | | ||
.github/generate-codecov-yml.sh >> .github/codecov.yml | ||
- name: Build and run tests, static | ||
run: | | ||
sudo apt -qq -y -o=Dpkg::Use-Pty=0 install build-essential libre2-dev | ||
|
@@ -165,10 +180,6 @@ jobs: | |
set -o pipefail | ||
make go-acc | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter | ||
- name: Ignore-list of generated files for codecov | ||
run: | | ||
.github/codecov-ignore-generated.sh >> .github/codecov.yml | ||
- name: Upload unit coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
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
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
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.