Skip to content

Rs notus

Rs notus #36

Workflow file for this run

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