-
-
Notifications
You must be signed in to change notification settings - Fork 46
32 lines (28 loc) · 817 Bytes
/
npmTest.yml
File metadata and controls
32 lines (28 loc) · 817 Bytes
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
# Run the npm tests on every push, which automatically tests every PR.
#
# If you want a feature to stay working, then make a test, and other coders will notice when it
# breaks.
# -- Sandify testing strategy.
#
# Guide for this action workflow:
# https://help.github.com/en/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: npm test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
- run: npm run lint-ci
env:
CI: true