2023-06-09 20:45:56 +00:00
|
|
|
name: Run Tests
|
2022-06-23 16:49:45 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
jobs:
|
2023-11-05 17:00:28 +00:00
|
|
|
test:
|
2022-06-23 16:49:45 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-11-08 04:10:42 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2024-10-19 11:13:24 +00:00
|
|
|
- name: Use Node.js 21.x
|
2022-06-23 16:49:45 +00:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2024-10-19 11:13:24 +00:00
|
|
|
node-version: 21.x
|
2022-06-23 16:49:45 +00:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build --if-present
|
|
|
|
- run: npm test
|
2024-02-18 02:16:00 +00:00
|
|
|
- run: npm run lint
|