Feature/integration tests #2
Workflow file for this run
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
# are working against known samples | |
name: "OSCAL Validations: Integration tests" | |
# Triggered when code is pushed to master and on pull requests | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- 'feature/**' # This will match any branch starting with "feature" | |
pull_request: | |
# the job requires some dependencies to be installed (including submodules), runs the tests, and then reports results | |
jobs: | |
# one job that runs tests | |
run-tests: | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: ./build | |
steps: | |
# Check-out the repository under $GITHUB_WORKSPACE | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Set up Java | |
uses: actions/setup-java@67fbd726daaf08212a7b021c1c4d117f94a81dd3 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- name: Read node version from `.nvmrc` file | |
id: nvmrc | |
shell: bash | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV | |
- name: Install required node.js version | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Dependencies | |
run: | | |
make configure | |
- name: Run tests | |
shell: bash | |
run: | | |
make test | |
- name : Publish all Junit XML tests results in Github Summary | |
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 | |
if: always() | |
with: | |
paths: | | |
**/reports/junit-*.xml | |