forked from aws-samples/eks-workshop-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 908 Bytes
/
test-util-ci.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
name: Pull Request (Test Utility)
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- testing/util/**
jobs:
test:
name: Test Utility CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ env.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
registry-url: "https://registry.npmjs.org"
- name: Install NPM packages
working-directory: testing/util
run: npm ci
- name: Build
working-directory: testing/util
run: npm run build
- name: Run unit tests
working-directory: testing/util
run: |
npm test
- name: Run test content
working-directory: testing/util
run: |
npm run exec -- test ./test-content