Keep better track of rejected rules. #49
Workflow file for this run
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
name: Test generated artifacts | |
on: [pull_request] | |
jobs: | |
build: | |
name: Sigma Rules Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '^1.20' | |
id: go | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Download Latest Velociraptor | |
uses: robinraju/release-downloader@v1.8 | |
id: velociraptor | |
with: | |
repository: velocidex/velociraptor | |
tag: v0.72 | |
fileName: "*v0.72.0-linux-amd64" | |
out-file-path: tests | |
- name: Run tests | |
run: | | |
go test -v ./src/ | |
- name: Build Artifacts | |
run: | | |
make linux | |
make compile | |
# For now we get the latest build from GCP until the 0.72.1 release. | |
- name: Run Velociraptor | |
run: | | |
mv ${{ fromJson(steps.velociraptor.outputs.downloaded_files)[0]}} ./tests/velociraptor | |
curl -o ./tests/velociraptor https://storage.googleapis.com/releases.velocidex.com/velociraptor/velociraptor-v0.72.1-linux-amd64-musl | |
chmod +x ./tests/velociraptor | |
make golden | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: artifact | |
path: tests/testcases | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: output | |
path: output |