2023-06-09 15:45:56 -05:00
|
|
|
name: Run Tests
|
2022-06-23 11:49:45 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
jobs:
|
2023-11-05 07:28:43 -06:00
|
|
|
test:
|
2022-06-23 11:49:45 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-11-07 22:10:42 -06:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-06-23 11:52:57 -05:00
|
|
|
- name: Use Node.js 16.x
|
2022-06-23 11:49:45 -05:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-06-23 11:52:57 -05:00
|
|
|
node-version: 16.x
|
2022-06-23 11:49:45 -05:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build --if-present
|
|
|
|
- run: npm test
|