-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix constraint script for windows (#740)
* hotfix constraint script for windows * Update test-scripts.yml * remove debug log * Update test-scripts.yml * update dev constraint * Update dev-constraint.js * sort files listed from directories
- Loading branch information
Showing
3 changed files
with
73 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: "Cross platform script test" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
- 'feature/**' | ||
pull_request: | ||
|
||
jobs: | ||
test-scripts: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, windows-2022] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Read node version from `.nvmrc` file | ||
id: nvmrc | ||
shell: bash | ||
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
|
||
- name: Install required node.js version | ||
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 | ||
with: | ||
node-version: ${{ steps.nvmrc.outputs.NODE_VERSION }} | ||
|
||
- name: Install OSCAL CLI | ||
run: make configure | ||
|
||
- name: Run Constraint script tests | ||
shell: bash | ||
run: | | ||
set -e | ||
npm run constraint resource-has-title | ||
env: | ||
CI: true |
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