Remove Tag Cleaning on Frontend #38266
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: Run OHDF-Converters Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
services: | |
splunk: | |
image: splunk/splunk | |
volumes: | |
- /$(pwd)/test/configs/splunk/server.conf:/etc/system/local/server.conf | |
ports: | |
- 8089:8089 | |
- 8088:8088 | |
env: | |
SPLUNK_START_ARGS: --accept-license | |
SPLUNKD_SSL_ENABLE: false | |
SPLUNK_PASSWORD: Valid_password! | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
check-latest: true | |
cache: 'yarn' | |
- name: Remove frontend and backend code to ensure the proper dependencies are declared in the hdf-converters package.json | |
run: | | |
rm -rf apps/frontend | |
rm -rf apps/backend | |
- name: Install project dependencies | |
run: | | |
yarn hdf-converters install --frozen-lockfile | |
yarn workspace @heimdall/cypress-tests install | |
env: | |
CYPRESS_INSTALL_BINARY: 0 | |
- name: Start Mock Sonarqube Server | |
run: yarn run cypress-test mock-json & | |
- name: Run unit tests | |
run: yarn hdf-converters test | |
env: | |
SPLUNK_HEC_TOKEN: ${{ secrets.SPLUNK_HEC_TOKEN }} | |
- name: Check RHEL7 XCCDF Results has a valid schema | |
uses: mitre/xccdf-validate-action@v1 | |
with: | |
input: libs/hdf-converters/sample_jsons/xccdf_reverse_mapper/output_report/rhel7-xccdf-results.xml | |
- name: Check Example 3 Layer XCCDF Results has a valid schema | |
uses: mitre/xccdf-validate-action@v1 | |
with: | |
input: libs/hdf-converters/sample_jsons/xccdf_reverse_mapper/output_report/example-3-layer-overlay-xccdf-results.xml | |
- name: Ensure the hdf-converters builds cleanly | |
run: yarn hdf-converters build |