mirror of
https://github.com/Qortal/Q-Wallets.git
synced 2026-04-27 06:29:23 +00:00
33 lines
625 B
YAML
33 lines
625 B
YAML
name: NPM Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- 'feature/**'
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
npm-tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run tests
|
|
run: npm test
|