-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing gsad from gsa repository
- Loading branch information
Showing
1,887 changed files
with
34 additions
and
36,249 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,15 @@ on: | |
jobs: | ||
testing: | ||
env: | ||
WORKSPACE: ${{ github.workspace }}/gsa | ||
REPORT_DIR: reports | ||
name: Testing and upload coverage | ||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
#node-version: [10.x, 12.x, 14.x, 15.x] | ||
# 10.x for debian: https://packages.debian.org/buster/nodejs | ||
# ubuntu lts: https://packages.ubuntu.com/focal/nodejs | ||
# 12.x for ubuntu-latest: https://packages.ubuntu.com/hirsute/nodejs | ||
# 14.x is recommended by https://nodejs.org/en/ | ||
node-version: [14.x] | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/checkout@v2 | ||
- name: Set up node ${{ matrix.python-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
|
@@ -40,34 +35,31 @@ jobs: | |
# `--prefer-offline` gives cache priority | ||
- name: Install dependencies | ||
run: yarn install --prefer-offline | ||
working-directory: ${{ env.WORKSPACE }} | ||
|
||
- name: Run JavaScript tests | ||
working-directory: ${{ env.WORKSPACE }} | ||
env: | ||
JEST_JUNIT_OUTPUT_DIR: ${{ env.WORKSPACE }}/${{ env.REPORT_DIR }} | ||
JEST_JUNIT_OUTPUT_DIR: ${{ env.REPORT_DIR }} | ||
run: yarn test:coverage --reporters=default --reporters=jest-junit | ||
- name: Load Lint Results | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: lint | ||
directory: . | ||
- name: Submit test coverage to codecov.io | ||
uses: codecov/codecov-action@v1.5.0 | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
directory: ${{ env.WORKSPACE }} | ||
fail_ci_if_error: true | ||
|
||
linting: | ||
env: | ||
WORKSPACE: ${{ github.workspace }}/gsa | ||
REPORT_DIR: reports | ||
name: Linting | ||
runs-on: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/checkout@v2 | ||
- name: Set up node ${{ matrix.python-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
|
@@ -85,34 +77,10 @@ jobs: | |
# `--prefer-offline` gives cache priority | ||
- name: Install dependencies | ||
run: yarn install --prefer-offline | ||
working-directory: ${{ env.WORKSPACE }} | ||
- name: Lint JavaScript files | ||
working-directory: ${{ env.WORKSPACE }} | ||
run: yarn lint --format junit -o ${{ env.WORKSPACE }}/${{ env.REPORT_DIR }} | ||
run: yarn lint --format junit -o ${{ env.REPORT_DIR }} | ||
- name: Store Lint Results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: lint | ||
path: ${{ env.WORKSPACE }}/${{ env.REPORT_DIR }} | ||
|
||
build_gsa: | ||
env: | ||
WORKSPACE: ${{ github.workspace }}/gsa | ||
name: Build gsa | ||
runs-on: 'ubuntu-latest' | ||
container: greenbone/gsa-main-gcc-testing | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Get Yarn cache directory | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Use Yarn cache | ||
uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
- name: Configure and compile gsa | ||
run: mkdir build && cd build/ && cmake -DCMAKE_BUILD_TYPE=Release ../gsa && make install | ||
working-directory: ${{ github.WORKSPACE }} | ||
path: ${{ env.REPORT_DIR }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,17 +21,9 @@ jobs: | |
echo $GITHUB_BASE_REF | ||
echo $GITHUB_REF | ||
if [ -n "$GITHUB_BASE_REF" ]; \ | ||
then echo "BRANCH=${GITHUB_BASE_REF##*/}" >> $GITHUB_ENV; \ | ||
else echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV; \ | ||
then echo "VERSION=${GITHUB_BASE_REF##*/}" >> $GITHUB_ENV; \ | ||
else echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV; \ | ||
fi; \ | ||
- name: Find version | ||
run: | | ||
echo $BRANCH | ||
if [ $BRANCH = "main" ]; \ | ||
then VERSION=main; \ | ||
else VERSION=$(echo "$BRANCH" | sed 's/gsa-//g' -); \ | ||
fi; | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
|
@@ -40,13 +32,13 @@ jobs: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
# this only works with github.ref on push not on pull_request. ;) | ||
- run: echo "Build and push ${{ github.repository }}-${{ env.VERSION }}-${{matrix.compiler}}-testing" | ||
- run: echo "Build and push ${{ github.repository }}-${{matrix.compiler}}-testing:${{ env.VERSION }" | ||
- name: Build and push | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ github.repository }}-${{ env.VERSION }}-${{matrix.compiler}}-testing | ||
tags: ${{ github.repository }}-${{matrix.compiler}}-testing:${{ env.VERSION } | ||
file: .docker/testing/Dockerfile | ||
build-args: | | ||
VERSION=${{ env.VERSION }} | ||
|
@@ -68,17 +60,9 @@ jobs: | |
echo $GITHUB_BASE_REF | ||
echo $GITHUB_REF | ||
if [ -n "$GITHUB_BASE_REF" ]; \ | ||
then echo "BRANCH=${GITHUB_BASE_REF##*/}" >> $GITHUB_ENV; \ | ||
else echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV; \ | ||
then echo "VERSION=${GITHUB_BASE_REF##*/}" >> $GITHUB_ENV; \ | ||
else echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV; \ | ||
fi; \ | ||
- name: Find version | ||
run: | | ||
echo $BRANCH | ||
if [ $BRANCH = "main" ]; \ | ||
then VERSION=main; \ | ||
else VERSION=$(echo "$BRANCH" | sed 's/gsa-//g' -); \ | ||
fi; | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
|
@@ -87,14 +71,14 @@ jobs: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
# this only works with github.ref on push not on pull_request. ;) | ||
- run: echo "Build and push ${{ github.repository }}-${{ env.VERSION }}-${{matrix.compiler}}-build" | ||
- run: echo "Build and push ${{ github.repository }}-${{ matrix.compiler }}-build:${{ env.VERSION }}" | ||
- name: Build and push | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ github.repository }}-${{ env.VERSION }}-${{matrix.compiler}}-build | ||
tags: ${{ github.repository }}-${{ matrix.compiler }}-build:${{ env.VERSION } | ||
file: .docker/build/Dockerfile | ||
build-args: | | ||
VERSION=${{ env.VERSION }} | ||
COMPILER=${{matrix.compiler}} | ||
COMPILER=${{ matrix.compiler }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.