@mitre/inspec-objects 0.0.1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,38 @@
1
+ name: Run TS-InSpec-Objects E2E Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-20.04
12
+
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+
16
+ - name: Cache node modules
17
+ uses: actions/cache@v2
18
+ env:
19
+ cache-name: cache-node-modules
20
+ with:
21
+ # npm cache files are stored in `~/.npm` on Linux/macOS
22
+ path: ~/.npm
23
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
24
+ restore-keys: |
25
+ ${{ runner.os }}-build-${{ env.cache-name }}-
26
+ ${{ runner.os }}-build-
27
+ ${{ runner.os }}-
28
+
29
+ - name: Setup Node.js
30
+ uses: actions/setup-node@v1
31
+ with:
32
+ node-version: '16.x'
33
+
34
+ - name: Install dependencies
35
+ run: npm install
36
+
37
+ - name: Run e2e tests
38
+ run: yarn test