Build(deps): Bump the github-actions group with 5 updates (#1499) #2043
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: "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 |