-
Notifications
You must be signed in to change notification settings - Fork 635
41 lines (39 loc) · 1.16 KB
/
nasl.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
name: "NASL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
nasl-test:
name: test
runs-on: ubuntu-latest
container: greenbone/gvm-libs:unstable
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
sh .github/install-openvas-dependencies.sh
- name: build openvas
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build
- name: redis
run: |
apt-get update && apt-get install --no-install-recommends --no-install-suggests -y redis
mkdir /run/redis-openvas
redis-server config/redis-openvas.conf || exit 1
- name: scripttests
run: |
mkdir -p /etc/openvas
echo "db_address = /run/redis-openvas/redis.sock" >> /etc/openvas/openvas.conf
cd nasl/tests
OPENVAS_NASL=../../build/nasl/openvas-nasl make check
- uses: actions/setup-go@v4
with:
go-version: '>=1.16.0'
- name: smoketest/lint
run: |
make build
./run -e ../../build/nasl/openvas-nasl-lint
working-directory: smoketest_lint