Skip to content

Commit 8095e03

Browse files
committed
Add unit tests to CI
1 parent b49fc51 commit 8095e03

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,25 @@ jobs:
140140
- name: Verify successful deployment
141141
run: |
142142
[ $(aws cloudformation describe-stacks --stack-name $STACK_NAME --endpoint-url http://localhost:4566 | jq '[ .Stacks[] | select(.StackStatus == "CREATE_COMPLETE") ] | length') -eq 1 ] || exit 1
143+
144+
unit-tests:
145+
runs-on: ubuntu-latest
146+
steps:
147+
- uses: actions/checkout@v2
148+
with:
149+
path: repo
150+
151+
- name: Use Node.js ${{ inputs.node-version }}
152+
uses: actions/setup-node@v2
153+
with:
154+
node-version: ${{ inputs.node-version }}
155+
156+
- name: Install project
157+
run: |
158+
npm ci
159+
160+
- name: Run tests
161+
run: |
162+
npm run test
163+
164+

0 commit comments

Comments
 (0)