"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file ".github/workflows/build-and-test.yml" between
gvmd-21.4.2.tar.gz and gvmd-21.4.3.tar.gz

About: OpenVAS Greenbone Vulnerability Manager is a layer between OpenVAS-Scanner and various client applications such as OpenVAS-Client or Greenbone Security Assistant. Among other features, it adds server-side storage of scan results and it makes it unnecessary for scan clients to keep connection until a scan finishes.

build-and-test.yml  (gvmd-21.4.2):build-and-test.yml  (gvmd-21.4.3)
skipping to change at line 12 skipping to change at line 12
on: on:
push: push:
branches: [ master, gvmd-21.04, gvmd-20.08 ] branches: [ master, gvmd-21.04, gvmd-20.08 ]
pull_request: pull_request:
branches: [ master, gvmd-21.04, gvmd-20.08 ] branches: [ master, gvmd-21.04, gvmd-20.08 ]
name: 'Build and Test' name: 'Build and Test'
jobs: jobs:
check-format: check-format:
name: Check formatting name: Check formatting
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: greenbone/build-env-gvm-libs-master-debian-buster-clang-core container: greenbone/gvmd-21.04-clang-testing
steps: steps:
- name: Check out gvmd - name: Check out gvmd
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Check Source Format - name: Check Source Format
run: | run: |
clang-format -i -style=file \ clang-format -i -style=file \
src/gmp.h src/gmp_base.h src/gmp_delete.h \ src/gmp.h src/gmp_base.h src/gmp_delete.h \
src/gmp_get.h src/gmp_tickets.h src/gmpd.h src/iterator.h \ src/gmp_get.h src/gmp_tickets.h src/gmpd.h src/iterator.h \
src/manage_utils.h src/sql.h src/types.h src/utils.h && \ src/manage_utils.h src/sql.h src/types.h src/utils.h && \
git diff --exit-code git diff --exit-code
skipping to change at line 62 skipping to change at line 62
- name: Upload XML documentation as artifact - name: Upload XML documentation as artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: xml-doc name: xml-doc
path: build/doc/generated/xml/ path: build/doc/generated/xml/
doc-coverage: doc-coverage:
name: Upload doc coverage to Codecov name: Upload doc coverage to Codecov
needs: gen_xml_doc needs: gen_xml_doc
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: greenbone/build-env-gvm-master-debian-buster-clang-postgresql container: greenbone/gvmd-21.04-clang-testing
steps: steps:
- name: Check out gvmd - name: Check out gvmd
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install coverxygen and codecov - name: Install coverxygen and codecov
run: | run: |
apt-get update && apt-get --assume-yes install python3-venv curl apt-get update && apt-get --assume-yes install python3-venv curl
python3 -m venv .venv python3 -m venv venv
. .venv/bin/activate . venv/bin/activate
pip install setuptools --upgrade pip install setuptools --upgrade
pip install 'coverxygen>=1.3.1' codecov pip install 'coverxygen>=1.3.1' codecov
- name: Download XML documentation artifact - name: Download XML documentation artifact
id: xml-doc-download id: xml-doc-download
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
name: xml-doc name: xml-doc
path: /tmp/xml-doc path: /tmp/xml-doc
- name: Establish documentation coverage - name: Establish documentation coverage
run: | run: |
. .venv/bin/activate . venv/bin/activate
python -m coverxygen --src-dir ${{ github.workspace }} \ python -m coverxygen --src-dir ${{ github.workspace }} \
--xml-dir ${{steps.xml-doc-download.outputs.download-path}} \ --xml-dir ${{steps.xml-doc-download.outputs.download-path}} \
--output lcov.info --output lcov.info
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v1
with: with:
files: lcov.info files: lcov.info
build_gmp_doc: build_gmp_doc:
name: Build GMP documentation name: Build GMP documentation
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: greenbone/build-env-gvm-master-debian-buster-clang-postgresql container: greenbone/gvmd-21.04-clang-testing
steps: steps:
- name: Check out gvmd - name: Check out gvmd
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Generate GMP documentation (HTML) - name: Generate GMP documentation (HTML)
run: mkdir build && cd build/ && cmake -DSKIP_SRC=1 .. && make doc-gmp run: mkdir build && cd build/ && cmake -DSKIP_SRC=1 .. && make doc-gmp
- name: Upload GMP documentation artifact - name: Upload GMP documentation artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: gmp.html name: gmp.html
path: build/doc/gmp.html path: build/doc/gmp.html
build: build:
name: Build various configs name: Build various configs
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
build_type: build_type:
- Debug - Debug
- Release - Release
docker_base: docker_base:
- greenbone/build-env-gvm-master-debian-buster-clang-postgresql - greenbone/gvmd-21.04-clang-testing
- greenbone/build-env-gvm-master-debian-buster-gcc-postgresql - greenbone/gvmd-21.04-gcc-testing
container: ${{ matrix.docker_base }} container: ${{ matrix.docker_base }}
env: env:
BUILD_TYPE: ${{ matrix.build_type }} BUILD_TYPE: ${{ matrix.build_type }}
steps: steps:
- name: Check out gvmd - name: Check out gvmd
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Find gvmd reference branch - name: Find gvmd reference branch
run: | run: |
if [ -n "$GITHUB_BASE_REF" ]; \ if [ -n "$GITHUB_BASE_REF" ]; \
then echo "GVMD_REF=$GITHUB_BASE_REF" >> $GITHUB_ENV; \ then echo "GVMD_REF=$GITHUB_BASE_REF" >> $GITHUB_ENV; \
skipping to change at line 157 skipping to change at line 157
make install make install
- name: Configure and compile gvmd - name: Configure and compile gvmd
run: | run: |
mkdir build && cd build/ && \ mkdir build && cd build/ && \
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. && \ cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. && \
make install make install
scan-build: scan-build:
name: Scan-build (clang static analyzer) name: Scan-build (clang static analyzer)
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: greenbone/build-env-gvm-master-debian-buster-clang-postgresql container: greenbone/gvmd-21.04-clang-testing
steps: steps:
- name: Check out gvmd - name: Check out gvmd
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Find gvmd reference branch - name: Find gvmd reference branch
run: | run: |
if [ -n "$GITHUB_BASE_REF" ]; \ if [ -n "$GITHUB_BASE_REF" ]; \
then echo "GVMD_REF=$GITHUB_BASE_REF" >> $GITHUB_ENV; \ then echo "GVMD_REF=$GITHUB_BASE_REF" >> $GITHUB_ENV; \
else echo "GVMD_REF=$GITHUB_REF" >> $GITHUB_ENV; \ else echo "GVMD_REF=$GITHUB_REF" >> $GITHUB_ENV; \
fi fi
- name: Select gvm-libs branch - name: Select gvm-libs branch
skipping to change at line 202 skipping to change at line 202
scan-build -o ~/scan-build-report make && \ scan-build -o ~/scan-build-report make && \
[ -z "$(ls -A ~/scan-build-report/)" ] [ -z "$(ls -A ~/scan-build-report/)" ]
- name: Upload scan-build report - name: Upload scan-build report
if: failure() if: failure()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: scan-build-report name: scan-build-report
path: ~/scan-build-report/ path: ~/scan-build-report/
test-units: test-units:
name: Build and run unit tests name: Run unit tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: greenbone/build-env-gvm-master-debian-buster-gcc-postgresql strategy:
matrix:
docker_base:
- greenbone/gvmd-21.04-clang-testing
- greenbone/gvmd-21.04-gcc-testing
container: ${{ matrix.docker_base }}
steps: steps:
- name: Check out gvmd - name: Check out gvmd
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Find gvmd reference branch - name: Find gvmd reference branch
run: | run: |
if [ -n "$GITHUB_BASE_REF" ]; \ if [ -n "$GITHUB_BASE_REF" ]; \
then echo "GVMD_REF=$GITHUB_BASE_REF" >> $GITHUB_ENV; \ then echo "GVMD_REF=$GITHUB_BASE_REF" >> $GITHUB_ENV; \
else echo "GVMD_REF=$GITHUB_REF" >> $GITHUB_ENV; \ else echo "GVMD_REF=$GITHUB_REF" >> $GITHUB_ENV; \
fi fi
- name: Select gvm-libs branch - name: Select gvm-libs branch
 End of changes. 9 change blocks. 
11 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)