Derick Montague | 9b27bc0 | 2021-03-16 21:11:26 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Run GUI Unit Tests as part of the CI Build process# |
| 3 | |
| 4 | set -e |
| 5 | |
| 6 | # When called from openbmc-build-scripts, the `pwd` could be anywhere, but |
| 7 | # the root of the repo is passed in the first argument. Switch to the repo |
| 8 | # root so npm/git run in the right place. |
| 9 | if [ -n "$1" ]; then |
| 10 | cd "$1" |
| 11 | fi |
| 12 | |
Ed Tanous | 02e1497 | 2024-02-27 12:59:56 -0800 | [diff] [blame] | 13 | npm ci |
Derick Montague | 9b27bc0 | 2021-03-16 21:11:26 -0500 | [diff] [blame] | 14 | npm run test:unit |