| 1 |
name: Node |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
push: |
| 6 |
branches-ignore: "dependabot/**" |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: read |
| 10 |
|
| 11 |
env: |
| 12 |
NODE_VERSION: 22.x |
| 13 |
|
| 14 |
jobs: |
| 15 |
build-and-test: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
name: Build & lint |
| 18 |
|
| 19 |
steps: |
| 20 |
- name: Checkout |
| 21 |
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 |
| 22 |
|
| 23 |
- name: Use Node.js ${{ env.NODE_VERSION }} |
| 24 |
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f |
| 25 |
with: |
| 26 |
node-version: ${{ env.NODE_VERSION }} |
| 27 |
cache: npm |
| 28 |
cache-dependency-path: '**/package-lock.json' |
| 29 |
|
| 30 |
- name: Install npm dependencies |
| 31 |
run: npm ci |
| 32 |
|
| 33 |
- name: Build |
| 34 |
run: npm run build |
| 35 |
|
| 36 |
|
| 37 |
- name: Lint |
| 38 |
run: npm run lint |