Skip to content

Commit

Permalink
Merge pull request #900 from fkie-cad/ci-actions
Browse files Browse the repository at this point in the history
added github action for ci
  • Loading branch information
rhelmke authored Nov 14, 2022
2 parents e10a823 + e8bb5a6 commit b3e9d43
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build CI
run-name: Build CI
on:
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build-ci:
strategy:
matrix:
os: [ focal, jammy, buster, bullseye ]
runs-on: [ self-hosted, linux, x64, "${{ matrix.os }}" ]
timeout-minutes: 45
steps:
- name: Add Masks
run: |
echo "::add-mask::${{ secrets.NPM_REGISTRY_URL }}"
echo "::add-mask::${{ secrets.NPM_REGISTRY_AUTH }}"
echo "::add-mask::${{ secrets.CODECOV_TOKEN }}"
echo "::add-mask::${{ secrets.NETWORK_MASK_1 }}"
echo "::add-mask::${{ secrets.NETWORK_MASK_2 }}"
echo "::add-mask::${{ secrets.NETWORK_MASK_3 }}"
echo "::add-mask::${{ secrets.INTERNAL_NODE_1 }}"
echo "::add-mask::${{ secrets.INTERNAL_NODE_2 }}"
echo "::add-mask::${{ secrets.INTERNAL_NODE_3 }}"
echo "::add-mask::${{ secrets.INTERNAL_NODE_4 }}"
echo "::add-mask::${{ secrets.INTERNAL_NODE_5 }}"
echo "::add-mask::${{ secrets.INTERNAL_NODE_6 }}"
echo "::add-mask::${{ secrets.INTERNAL_NODE_7 }}"
echo "::add-mask::${{ secrets.INTERNAL_NODE_8 }}"
echo "::add-mask::${{ secrets.SECRET_STRING_1 }}"
echo "::add-mask::${{ secrets.SECRET_STRING_2 }}"
echo "::add-mask::${{ secrets.SECRET_STRING_3 }}"
- name: Checkout Branch
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set ulimit
run: ulimit -n 9999
- name: Pre-Installation
shell: 'script -q -e -c "bash {0}"'
run: ./src/install/pre_install.sh
- name: Install FACT
shell: 'script -q -e -c "bash {0}"'
run: |
./src/install.py -U -R -N -L DEBUG
- name: Unit Tests
shell: 'script -q -e -c "bash {0}"'
run: |
python3 -m pip install codecov
pytest --cov=.

0 comments on commit b3e9d43

Please sign in to comment.