-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (48 loc) · 1.37 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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: "velociraptor-v0.72.4-linux-amd64-musl"
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