-
Notifications
You must be signed in to change notification settings - Fork 20
41 lines (36 loc) · 1013 Bytes
/
test.yml
File metadata and controls
41 lines (36 loc) · 1013 Bytes
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
name: Test
on: [pull_request]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
go-version: 1.23
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Download Latest Velociraptor
uses: robinraju/release-downloader@v1
id: velociraptor
with:
repository: velocidex/velociraptor
tag: v0.75
fileName: "velociraptor-v0.75.2-linux-amd64-musl"
out-file-path: tests
- name: Build artifacts
run: |
make all compile
- name: Run Velociraptor
run: |
mv ${{ fromJson(steps.velociraptor.outputs.downloaded_files)[0]}} ./tests/velociraptor.bin
chmod +x ./tests/velociraptor.bin
ls -l ./output/
./tests/velociraptor.bin artifacts verify --builtin -v ./output/*.yaml
- name: Test
shell: bash
if: always()
run: |
go test -v ./...