-
Notifications
You must be signed in to change notification settings - Fork 91
48 lines (40 loc) · 1.13 KB
/
test-scripts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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